3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $keys = array(1,2,3,4,5); function myFunction($key){ return array_key_exists($key, $array); } array_walk_recursive($keys, 'myFunction');
based on 68e3X
Output for 5.3.0 - 7.2.0
Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists() expects parameter 2 to be array, null given in /in/5JTgC on line 6
Output for 5.0.4 - 5.2.17
Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6 Notice: Undefined variable: array in /in/5JTgC on line 6 Warning: array_key_exists(): The second argument should be either an array or an object in /in/5JTgC on line 6
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: array_walk_recursive() in /in/5JTgC on line 9
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: array_walk_recursive() in /in/5JTgC on line 9
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: array_walk_recursive() in /in/5JTgC on line 9