3v4l.org

run code in 300+ PHP versions simultaneously
<?php function check_ints(&$array) { return array_reduce($array, 'is_int'); } $array = range(1, 100); check_ints($array); echo memory_get_peak_usage(true);
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ArgumentCountError: is_int() expects exactly 1 argument, 2 given in /in/bprQI:4 Stack trace: #0 [internal function]: is_int(NULL, 1) #1 /in/bprQI(4): array_reduce(Array, 'is_int') #2 /in/bprQI(9): check_ints(Array) #3 {main} thrown in /in/bprQI on line 4
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:
48.42 ms | 401 KiB | 8 Q