3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = array(array(1, 2)); foreach($x as list($a, $b)) { echo $a, $b; }
based on 2vaoJ
Output for 5.5.24 - 7.3.0beta1
12
Output for 5.4.2 - 5.4.45
Parse error: syntax error, unexpected 'list' (T_LIST) in /in/6eROK on line 5
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Parse error: syntax error, unexpected T_LIST in /in/6eROK on line 5
Process exited with code 255.