3v4l.org

run code in 200+ php & hhvm versions
<?php function foo() { return []; } var_dump(list($a, $b) = foo());
based on bapZC
Output for 7.0.30 - 7.2.6
Notice: Undefined offset: 0 in /in/qhq5R on line 7 Notice: Undefined offset: 1 in /in/qhq5R on line 7 array(0) { }
Output for hhvm-3.22.0
Notice: Undefined index: 0 in /in/qhq5R on line -1 Notice: Undefined index: 1 in /in/qhq5R on line -1 array(0) { }
Output for hhvm-3.18.5 - 3.21.3
Notice: Undefined index: 0 in /in/qhq5R on line 7 Notice: Undefined index: 1 in /in/qhq5R on line 7 array(0) { }
Output for 5.6.30
Notice: Undefined offset: 1 in /in/qhq5R on line 7 Notice: Undefined offset: 0 in /in/qhq5R on line 7 array(0) { }