3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set("Europe/Dublin"); echo "TZ: " . date_default_timezone_get() . PHP_EOL; $date = new DateTime("2015-11-26"); $baseDate = new DateTime("1970-01-01"); var_dump($date->diff($baseDate));
based on cooGO