3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($i = 1, $j = 0; $i <= 10; print $j += $i . ' ', print $i . ' ', $i++); ?>
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 11 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 32 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 63 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 104 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 155 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 216 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 287 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 368 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 459 Notice: A non well formed numeric value encountered in /in/sIi4J on line 2 5510
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.0.14
11 32 63 104 155 216 287 368 459 5510