3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = time(); echo date('d-m-Y H:i', $x) . "\n"; $a = strtotime('2013-11-14T23:00:00'); echo date('d-m-Y H:i', $a) . "\n"; echo intval((($x-$a)/60));
Output for 5.0.0 - 7.1.0
14-11-2013 23:47 14-11-2013 23:00 47
Output for 4.3.5 - 4.4.9
14-11-2013 23:47 15-11-2013 07:00 -432
Output for 4.3.0 - 4.3.4
14-11-2013 23:47 14-11-2013 17:00 407