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 intval(($x-$a)/60);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
14-11-2013 23:46 46
Output for 4.3.5 - 4.4.9
14-11-2013 23:46 -433
Output for 4.3.0 - 4.3.4
14-11-2013 23:46 406