3v4l.org

run code in 300+ PHP versions simultaneously
<?php $timings = [ 109719.80500221252, 55000.132545, 800.15347683, ]; foreach($timings as $time) { echo 'Original time: ', $time, PHP_EOL; if ($time > 60000) { $mins = floor($time / 60000); $secs = round((fmod($time, 60000) / 1000), 2); $time = $mins.' mins'; if ($secs !== 0) { $time .= ", $secs secs"; } } else if ($time > 1000) { $time = round(($time / 1000), 2).' secs'; } else { $time = round($time).'ms'; } echo 'Human readable time: ', $time, PHP_EOL, PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
Original time: 109719.80500221 Human readable time: 1 mins, 49.72 secs Original time: 55000.132545 Human readable time: 55 secs Original time: 800.15347683 Human readable time: 800ms

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