3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $b = []; list ($b[], $b[], $b[]) = str_split('abc'); var_dump($b);
based on F0cYU
Output for 7.0.0 - 7.2.0
array(3) { [0]=> string(1) "a" [1]=> string(1) "b" [2]=> string(1) "c" }
Output for 5.4.10 - 5.6.28
array(3) { [0]=> string(1) "c" [1]=> string(1) "b" [2]=> string(1) "a" }
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/UA0TG on line 3
Process exited with code 255.