3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fn4 = fn ($totalCount) => sqrt($totalCount) - sqrt(1); $total = 1; for ($i = 1; $i <= 20; $i++) { echo sqrt($i * 20) - sqrt(1); // echo "$total: " . ceil($fn4($i)); echo "\n"; $total++; }
Output for git.master_jit, git.master
3.4721359549996 5.3245553203368 6.7459666924148 7.9442719099992 9 9.9544511501033 10.832159566199 11.649110640674 12.416407864999 13.142135623731 13.832396974191 14.49193338483 15.124515496597 15.733200530682 16.320508075689 16.888543819998 17.439088914586 17.97366596101 18.493588689618 19

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:
25.2 ms | 406 KiB | 5 Q