3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 2; $m = $seconds / 60 % 60; $s = $seconds % 60; if ($m >= 1){ $rem = strval($s); if (strlen($rem) == 1){ $rem = sprintf("%02s", $rem); } $time = strval($m); $time = $time.":".$rem; } else if($m == 0){ $time = "0:".$s; } else{ $time = "0:00"; //Error } echo "<span style='margin-left:8px;'>Duration: ", $time, "</span><br>";
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 0.03333333333333333 to int loses precision in /in/gttSF on line 3 <span style='margin-left:8px;'>Duration: 0:2</span><br>

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:
35.24 ms | 401 KiB | 8 Q