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); echo gettype(5); echo gettype(true);
based on Hgtjq
Output for 7.0.0 - 7.2.0
NULL NULL NULL string(1) "p" string(1) "h" string(1) "p" integerboolean
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" integerboolean