3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getTimeLeft($start, $minutes) { $endTime = strtotime( '+'.$minutes." minutes", $start); return strtotime($endTime) - strtotime($start); } echo getTimeLeft('2015-09-06 21:00:39', '180');
based on WYnCW
Output for 5.3.17 - 7.2.6
Notice: A non well formed numeric value encountered in /in/J901r on line 4 -1441566039