3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = [[11, 12, 13], [21, 22, 23], [31, 32, 33]]; list($a, $a) = $a; var_dump($a);
Output for 7.0.0 - 7.3.0rc4
array(3) { [0]=> int(21) [1]=> int(22) [2]=> int(23) }
Output for 5.4.10 - 5.6.28
int(21)
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/vBGTH on line 3
Process exited with code 255.