3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(-1); list($one, $two) = false; var_dump($one, $two); echo PHP_EOL; list($one, $two) = null; var_dump($one, $two); echo PHP_EOL; list($one, $two) = array(); var_dump($one, $two); echo PHP_EOL;
Output for 7.0.0 - 7.1.0
NULL NULL NULL NULL Notice: Undefined offset: 0 in /in/aDhId on line 12 Notice: Undefined offset: 1 in /in/aDhId on line 12 NULL NULL
Output for hhvm-3.12.0
NULL NULL NULL NULL Notice: Undefined index: 1 in /in/aDhId on line 12 Notice: Undefined index: 0 in /in/aDhId on line 12 NULL NULL
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.6.28
NULL NULL NULL NULL Notice: Undefined offset: 1 in /in/aDhId on line 12 Notice: Undefined offset: 0 in /in/aDhId on line 12 NULL NULL
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.1.2, 5.2.2 - 5.2.17
NULL NULL NULL NULL Notice: Undefined offset: 1 in /in/aDhId on line 12 Notice: Undefined offset: 0 in /in/aDhId on line 12 NULL NULL
Output for 5.1.3 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/aDhId on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
NULL NULL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aDhId on line 6 PHP_EOLNULL NULL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aDhId on line 10 PHP_EOL Notice: Undefined offset: 1 in /in/aDhId on line 12 Notice: Undefined offset: 0 in /in/aDhId on line 12 NULL NULL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/aDhId on line 14 PHP_EOL