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) - sqrt(1); // echo "$total: " . ceil($fn4($i)); echo "\n"; $total++; }
Output for git.master_jit, git.master
0 0.4142135623731 0.73205080756888 1 1.2360679774998 1.4494897427832 1.6457513110646 1.8284271247462 2 2.1622776601684 2.3166247903554 2.4641016151378 2.605551275464 2.7416573867739 2.8729833462074 3 3.1231056256177 3.2426406871193 3.3588989435407 3.4721359549996

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.9 ms | 406 KiB | 5 Q