Grilled Cheese

ExploreLog inSign up
Terms of UsePrivacy PolicyCommunity StandardsHelpGet the app

Grilled Cheese is a product of Village Compute

Version devBuilt at: 2026-10-16 07:19:27 EDT

PhotosVideosAllPeople
LatestRanked
@scott.keck-warren.comOct 10, 2026, 1:13 PM

#PHPC tip: on the PHP 8.6 beta, this is false:

version_compare(PHP_VERSION, '8.6.0', '>='); // "8.6.0beta2" < "8.6.0"

`version_compare()` ranks beta below the release. Gate on the integer instead:

if (PHP_VERSION_ID >= 80600) {
$page = clamp($page, 1, $totalPages);
}

#PHP #PHP86 #phparch

@scott.keck-warren.comOct 5, 2026, 1:07 PM

Have you ever hit this fatal error?

In PHP 8.6, that line works. What did you do to get around it?

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #phparch

Photo, no description
@scott.keck-warren.comOct 2, 2026, 1:09 PM

#PHP8.6 deprecates `is_integer()`, `is_long()`, `is_double()`, and `doubleval()`.

I ran this grep against my app directory and found 150 "problems".

Every call will fill your logs with deprecation notices the day you upgrade.

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHP86 #phparch

Photo, no description
@scott.keck-warren.comSep 30, 2026, 1:03 PM

#PHP86: Partial Function Applications, which allow us to write the following.

The `?` is an argument placeholder, so `str_replace('Scott', 'Alice', ?)` builds a function with the first two arguments, and the pipe puts the value in '?'

Video: https://youtu.be/U9Jrcg1Ns1k

#PHP #PHPC #PHP86 #phparch

Photo, no description