3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for($f = 0; $f <= 20; $f++) { $i = 0; echo "F".$i." = ".$i+$f."\n"; $i++; }
based on SAkAK
Output for 7.1.0
Warning: A non-numeric value encountered in /in/WqAa0 on line 4 0 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 1 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 2 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 3 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 4 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 5 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 6 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 7 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 8 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 9 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 10 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 11 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 12 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 13 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 14 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 15 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 16 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 17 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 18 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 19 Warning: A non-numeric value encountered in /in/WqAa0 on line 4 20
Output for 4.3.0 - 7.0.14
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20