3v4l.org

run code in 300+ PHP versions simultaneously
<?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/>";
Output for git.master, git.master_jit, rfc.property-hooks
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/>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
62.67 ms | 401 KiB | 8 Q