3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "Şef"; for ($i = 0; $i < iconv_strlen($str); $i++) { echo iconv_substr($str, $i, 1).'<br>' };
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.22
Parse error: syntax error, unexpected '}', expecting ',' or ';' in /in/HLZUh on line 7
Process exited with code 255.

preferences:
189.96 ms | 1395 KiB | 58 Q