3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = 'foo bar'; list ($b[0], $b[1]) = explode(' ', $str); var_dump($b);
based on scmZ8
Output for 7.0.0 - 7.2.0
array(2) { [0]=> string(3) "foo" [1]=> string(3) "bar" }
Output for 5.3.20 - 5.6.28
array(2) { [1]=> string(3) "bar" [0]=> string(3) "foo" }