3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo '== Alphabets ==' . PHP_EOL; $s = 'W'; for ($n=0; $n<6; $n++) { echo $s +=2 . PHP_EOL; }
based on XSemj
Output for 7.1.0 - 7.2.0
== Alphabets == Warning: A non-numeric value encountered in /in/V1HEu on line 5 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 2 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 4 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 6 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 8 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 10 Notice: A non well formed numeric value encountered in /in/V1HEu on line 5 12
Output for 5.3.21 - 7.0.20
== Alphabets == 24681012