3v4l.org

run code in 300+ PHP versions simultaneously
<?php function formatDuration($sec){ $h = floor($sec/(60*60)); $m = floor(($sec%60)/60); $s = floor(($sec%60)%60); return sprintf("%02d:%02d:%02d", $h, $m, $s); } for ($i=0; $i < 60*60*1.5; $i+=150){ echo formatDuration($i), PHP_EOL; }
Output for git.master, git.master_jit, rfc.property-hooks
00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 00:00:00 00:00:30 01:00:00 01:00:30 01:00:00 01:00:30 01:00:00 01:00:30 01:00:00 01:00:30 01:00:00 01:00:30 01:00:00 01:00:30

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:
89.92 ms | 402 KiB | 8 Q