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++; }

preferences:
24.48 ms | 404 KiB | 5 Q