3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding("UTF-8"); $mb_string = 'žščř'; $l=mb_strlen($mb_string); for($i=0;$i<$l;$i++) { print(mb_substr($mb_string,$i,1)."<br/>"); } $array = str_split($mb_string); echo $array[0]; ?>
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
ž<br/>š<br/>č<br/>ř<br/>�
Output for 4.4.5 - 4.4.9
ž<br/>š<br/>č<br/>ř<br/><br /> <b>Fatal error</b>: Call to undefined function: str_split() in <b>/in/v5hBG</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
ž<br/>š<br/>č<br/>ř<br/><br /> <b>Fatal error</b>: Call to undefined function: str_split() in <b>/in/v5hBG</b> on line <b>13</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
ž<br/>š<br/>č<br/>ř<br/><br /> <b>Fatal error</b>: Call to undefined function: str_split() in <b>/in/v5hBG</b> on line <b>13</b><br />