3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time1 = '2014-08-26 14:35:29'; $time2 = '2014-08-26 14:36:29'; $strtotime1 = strtotime($time1); $strtotime2 = strtotime($time2); echo $strtotime1; echo "\n"; echo $strtotime2; echo "\n"; echo $strtotime2 - $strtotime1; $date = new DateTime('2014-08-26 14:36:29'); echo "\n"; var_dump($date);

preferences:
42.34 ms | 402 KiB | 5 Q