3v4l.org

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