3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getTime($time) { list($hours, $minutes, $seconds) = explode(':', $time); echo $minutes . ': ' . 60 - (floor((60-$minutes) / 10) * 10) . "\n"; } getTime('12:34:00'); getTime('12:19:00'); getTime('12:01:00'); getTime('12:46:00'); getTime('12:58:00');
based on A6nub
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/L9P3g on line 7 14 Notice: A non well formed numeric value encountered in /in/L9P3g on line 7 -21 Notice: A non well formed numeric value encountered in /in/L9P3g on line 7 -49 Notice: A non well formed numeric value encountered in /in/L9P3g on line 7 36 Notice: A non well formed numeric value encountered in /in/L9P3g on line 7 58
Output for 5.3.18 - 7.0.20
14 -21 -49 36 58