3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a, $b) = 'aa'; var_dump($a, $b); $array = array('ab'); list($c, $d) = $array[0]; var_dump($c, $d);
based on 3EQmi
Output for 7.0.0 - 7.1.0
NULL NULL NULL NULL
Output for 4.3.0 - 5.0.5, 5.2.2 - 5.6.28
NULL NULL string(1) "a" string(1) "b"
Output for 5.1.0 - 5.2.1
Fatal error: Invalid opcode 98/1/1. in /in/XLLTv on line 3
Process exited with code 255.