3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('America/Los_Angeles'); $time = time(); //Qcodo version print_r(new Datetime(date('Y-m-d H:i:s', $time))); //v3 version print_r(new Datetime("@$time"));

preferences:
31.39 ms | 407 KiB | 5 Q