3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $z = array(); list($a $b $c) = array(1, 2, 3); list($z[], $z[], $z[]) = array(1, 2, 3); var_dump($a, $b, $c); var_dump($z);
based on ROJ7Y
Output for 7.0.0 - 7.0.2
Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting :: (T_PAAMAYIM_NEKUDOTAYIM) in /in/oueEr on line 4
Process exited with code 255.
Output for 5.4.12 - 5.6.17
Parse error: syntax error, unexpected '$b' (T_VARIABLE), expecting ',' or ')' in /in/oueEr on line 4
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected T_VARIABLE, expecting ',' or ')' in /in/oueEr on line 4
Process exited with code 255.