3v4l.org

run code in 300+ PHP versions simultaneously
<?php $seconds = 2; $h = $seconds / 3600 % 24; $m = $seconds / 60 % 60; $s = $seconds % 60; $output = array(); if ($h >= 1) $output[] = "{$h} ".($h == 1 ? i18n::get('hour') : i18n::get('hours')); if ($m >= 1) $output[] = "{$m} ".($m == 1 ? i18n::get('minute') : i18n::get('minutes')); if ($s >= 1) $output[] = "{$s} ".($s == 1 ? i18n::get('second') : i18n::get('seconds')); echo implode(', ', $output);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Implicit conversion from float 0.0005555555555555556 to int loses precision in /in/d7E1I on line 3 Deprecated: Implicit conversion from float 0.03333333333333333 to int loses precision in /in/d7E1I on line 4 Fatal error: Uncaught Error: Class "i18n" not found in /in/d7E1I:10 Stack trace: #0 {main} thrown in /in/d7E1I on line 10
Process exited with code 255.

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