3v4l.org

run code in 300+ PHP versions simultaneously
<?php $keys = array(1,2,3,4,5); function myFunction($key){ return array_key_exists($key, $array); } array_walk_recursive($keys, 'myFunction');
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $array in /in/5JTgC on line 6 Fatal error: Uncaught TypeError: array_key_exists(): Argument #2 ($array) must be of type array, null given in /in/5JTgC:6 Stack trace: #0 [internal function]: myFunction(1, 0) #1 /in/5JTgC(9): array_walk_recursive(Array, 'myFunction') #2 {main} thrown in /in/5JTgC on line 6
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:
46.62 ms | 401 KiB | 8 Q