3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = 0; $k = 0; while ($i <= 100) { if ($i % 10 === 0 && $i > 0) { $k++; echo '$i = '. $i.' $k = '. $k . PHP_EOL; } $i++; }
Output for git.master, git.master_jit, rfc.property-hooks
$i = 10 $k = 1 $i = 20 $k = 2 $i = 30 $k = 3 $i = 40 $k = 4 $i = 50 $k = 5 $i = 60 $k = 6 $i = 70 $k = 7 $i = 80 $k = 8 $i = 90 $k = 9 $i = 100 $k = 10

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:
57.44 ms | 401 KiB | 8 Q