3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'php'; list($a, $b, $c) = $string; var_dump($a, $b, $c); list($a, $b, $c) = str_split($string); var_dump($a, $b, $c);
based on lLU8q
Output for 7.0.0 - 7.2.0
NULL NULL NULL string(1) "p" string(1) "h" string(1) "p"
Output for 5.3.18 - 5.6.28
string(1) "p" string(1) "h" string(1) "p" string(1) "p" string(1) "h" string(1) "p"