3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '== Alphabets ==' . PHP_EOL; $s = 'W'; for ($n=0; $n<5; $n++) { echo ++$s + 1 . ' '; }
Output for 7.1.0 - 7.2.0
== Alphabets == Warning: A non-numeric value encountered in /in/XkHVr on line 6 1 Warning: A non-numeric value encountered in /in/XkHVr on line 6 1 Warning: A non-numeric value encountered in /in/XkHVr on line 6 1 Warning: A non-numeric value encountered in /in/XkHVr on line 6 1 Warning: A non-numeric value encountered in /in/XkHVr on line 6 1
Output for 5.3.21 - 7.0.20
== Alphabets == 1 1 1 1 1