3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a, $b) = NULL; var_dump($a, $b); list($c, $d) = array(); var_dump($c, $d); list($e, $f) = array('a'); var_dump($e, $f);
Output for 7.0.0 - 7.1.0
NULL NULL Notice: Undefined offset: 0 in /in/fF4Nc on line 6 Notice: Undefined offset: 1 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL
Output for 5.3.0 - 5.6.28
NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 6 Notice: Undefined offset: 0 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL
Output for 4.3.0 - 5.1.2, 5.2.2 - 5.2.17
NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 6 Notice: Undefined offset: 0 in /in/fF4Nc on line 6 NULL NULL Notice: Undefined offset: 1 in /in/fF4Nc on line 10 string(1) "a" NULL
Output for 5.1.3 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/fF4Nc on line 2
Process exited with code 255.