3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = "AB"; list($a, $b) = $s; var_dump(array($a,$b));
based on bI0eL
Output for 7.0.0 - 7.2.0
array(2) { [0]=> NULL [1]=> NULL }
Output for 5.4.0 - 5.6.28
array(2) { [0]=> string(1) "A" [1]=> string(1) "B" }