3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getTimeLeft($start, $minutes) { $endTime = strtotime($start + $minutes."minutes"); return strtotime($endTime) - strtotime($start); } echo getTimeLeft('2015-09-6 21:00:39', '180');
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/vlOWA on line 4 -1441566039
Output for 5.3.17 - 5.5.29, 5.5.32, 5.5.34 - 5.6.16, 5.6.18, 5.6.20 - 7.0.2, 7.0.4 - 7.0.20
-1441566039
Output for 7.0.3
102135063481
Output for 5.6.19
16267546626
Output for 5.6.17
173012007491
Output for 5.5.33
231359828238
Output for 5.5.31
67264714701
Output for 5.5.30
187781655559