3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str = "Hello Friend"; $arr1 = str_split($str); var_dump($arr1);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(12) { [0]=> string(1) "H" [1]=> string(1) "e" [2]=> string(1) "l" [3]=> string(1) "l" [4]=> string(1) "o" [5]=> string(1) " " [6]=> string(1) "F" [7]=> string(1) "r" [8]=> string(1) "i" [9]=> string(1) "e" [10]=> string(1) "n" [11]=> string(1) "d" }
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: str_split() in /in/CMU0A on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: str_split() in /in/CMU0A on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: str_split() in /in/CMU0A on line 4