3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $json = <<<JSON {"date":"2017-07-11 15:57:00.021735","timezone_type":3,"timezone":"Europe\/Amsterdam"} JSON; var_dump(new \DateTime(json_decode($json)));
Output for 7.1.6
Fatal error: Uncaught TypeError: DateTime::__construct() expects parameter 1 to be string, object given in /in/2Ks5L:7 Stack trace: #0 /in/2Ks5L(7): DateTime->__construct(Object(stdClass)) #1 {main} thrown in /in/2Ks5L on line 7
Process exited with code 255.