3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $cha = 'a'; $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 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
b
Output for hhvm-3.10.0

Process exited with code 153.