3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php list($a,$b) = str_split("aa"); var_dump($a,$b); $a = array(); $a[]="a"; $a[] ="a"; list($x,$y) = $a; var_dump($x,$y);
based on CMXtN
Output for 5.0.0 - 7.1.0
string(1) "a" string(1) "a" string(1) "a" string(1) "a"
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/X8XZU on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/X8XZU on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/X8XZU on line 2