3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cha = 'a';<br>$next_cha = ++$cha; //The following if condition prevent you to go beyond 'z' or 'Z' and will reset to 'a' or 'A'. if (strlen($next_cha) > 1) { $next_cha = $next_cha[0]; } echo $next_cha; ?>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '<' in /in/LR9Sb on line 2
Process exited with code 255.

preferences:
192.42 ms | 1387 KiB | 66 Q