3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = 935.2832234; $time = round($time, 2); $timeOut = ''; if ($time > 60 * 60) { $timeOut .= gmdate('H', $time) . 'hours, '; } if ($time > 60) { $timeOut .= gmdate('i', $time) . 'min, '; } $timeOut .= number_format($time % 60, 2); echo $text . ' (' . $timeOut . number_format($time, 2) . ' sec)' . "\n\n";
Output for 5.0.4 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Notice: Undefined variable: text in /in/gH77u on line 15 (15min, 35.00935.28 sec)
Output for hhvm-3.12.0
Notice: Undefined variable: text in /in/gH77u on line -1 (15min, 35.00935.28 sec)
Output for 4.3.0 - 5.0.3
Notice: Undefined variable: text in /in/gH77u on line 15 (15min, 35.00935.28 sec)