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-06 21:00:39', '180');
based on vlOWA
Output for 7.1.0 - 7.2.0
Notice: A non well formed numeric value encountered in /in/gbd8T on line 4 -1441566039
Output for 5.5.24 - 5.6.14, 5.6.16, 5.6.18, 5.6.20 - 7.0.2, 7.0.4 - 7.0.20
-1441566039
Output for 7.0.3
6264932287
Output for 5.6.19
150100714634
Output for 5.6.17
-44068249275
Output for 5.6.15
-61202751634
Output for 5.4.45
-31139785871
Output for 5.4.44
-31076713871
Output for 5.4.43
-30950483471
Output for 5.4.42
-30887325071
Output for 5.4.41
-30855789071
Output for 5.4.40
-30761094671
Output for 5.4.39
-30666486671
Output for 5.4.38
-30634864271
Output for 5.4.36 - 5.4.37
-30571792271
Output for 5.4.35
-30508633871
Output for 5.4.34
-30445561871
Output for 5.4.32
-30382403471
Output for 5.3.29, 5.4.31
-30350867471
Output for 5.4.29 - 5.4.30
-30287795471
Output for 5.4.28
-30256173071
Output for 5.4.27
-30224637071
Output for 5.4.26
-30193101071
Output for 5.4.23 - 5.4.25
-30161565071
Output for 5.3.28, 5.4.20 - 5.4.22
-30129942671
Output for 5.3.27, 5.4.18 - 5.4.19
-30098406671
Output for 5.3.24 - 5.3.26, 5.4.14 - 5.4.17
-30066870671
Output for 5.3.20 - 5.3.23, 5.4.10 - 5.4.13
-30035334671
Output for 5.3.17 - 5.3.19, 5.4.7 - 5.4.9
-30003712271