3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach (range(1, 2, 0.1) as $r) { var_dump($r); if ($r === 1.7) echo "ok\n"; if (intval($r * 10) === 17) echo "okish\n"; }
Output for git.master, git.master_jit
float(1) float(1.1) float(1.2) float(1.3) float(1.4) float(1.5) float(1.6) float(1.7000000000000002) okish float(1.8) float(1.9) float(2)

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:
53.2 ms | 408 KiB | 5 Q