3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $total = 0; for ($i = 1; $i <= 10; $i++) { for ($j = 10; $j >=1 ; $j++) { $total = $i + $j; echo "$i + $j = $total\n"; break; } } $total = $total / 2; print $total."<br/>";
based on 9UQEK
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.1.0 - 7.3.0beta1
1 + 10 = 11 2 + 10 = 12 3 + 10 = 13 4 + 10 = 14 5 + 10 = 15 6 + 10 = 16 7 + 10 = 17 8 + 10 = 18 9 + 10 = 19 10 + 10 = 20 10<br/>