3v4l.org

run code in 300+ PHP versions simultaneously
<?php if (!function_exists('array_all')) { function array_all(array $array, callable $callable) { foreach ($array as $key => $value) { if (! $callable($value, $key)) return false; } return true; } } var_dump(array_all([1, 2, 3], 'is_int'));
Output for rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: is_int() expects exactly 1 argument, 2 given in /in/2DQ9a:6 Stack trace: #0 /in/2DQ9a(6): is_int(1, 0) #1 /in/2DQ9a(13): array_all(Array, 'is_int') #2 {main} thrown in /in/2DQ9a on line 6
Process exited with code 255.
Output for git.master_jit, git.master
Fatal error: Uncaught ArgumentCountError: is_int() expects exactly 1 argument, 2 given in /in/2DQ9a:13 Stack trace: #0 [internal function]: is_int(1, 0) #1 /in/2DQ9a(13): array_all(Array, 'is_int') #2 {main} thrown in /in/2DQ9a on line 13
Process exited with code 255.

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
56.33 ms | 2741 KiB | 4 Q