3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { return []; } var_dump(list($a, $b) = foo());
Output for 8.0.0 - 8.0.10, 8.1rc1 - rc2
Warning: Undefined array key 0 in /in/qhq5R on line 7 Warning: Undefined array key 1 in /in/qhq5R on line 7 array(0) { }
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23
Notice: Undefined offset: 0 in /in/qhq5R on line 7 Notice: Undefined offset: 1 in /in/qhq5R on line 7 array(0) { }

preferences:
88.45 ms | 461 KiB | 5 Q