3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array_1 = array('something1', something2); $array_2 = array('something3', something4); $array_3 = array(); $array_4 = array('something1', something2); $list = array($array_1,$array_2,$array_3,$array_4); array_walk($list,function(&$value, $key){ });
Output for 5.3.0 - 7.1.0
Notice: Use of undefined constant something2 - assumed 'something2' in /in/X7BlG on line 2 Notice: Use of undefined constant something4 - assumed 'something4' in /in/X7BlG on line 3 Notice: Use of undefined constant something2 - assumed 'something2' in /in/X7BlG on line 5
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/X7BlG on line 8
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/X7BlG on line 8
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/X7BlG on line 8
Process exited with code 255.