3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo json_encode(new DateTime('@1419237113')); $datetime = json_decode('{"date":"2014-12-22 08:31:53.000000","timezone_type":1,"timezone":"+00:00"}'); echo $datetime->format('dd.mm.yy');
based on kTLcd
Output for 7.0.0 - 7.2.0
{"date":"2014-12-22 08:31:53.000000","timezone_type":1,"timezone":"+00:00"} Fatal error: Uncaught Error: Call to undefined method stdClass::format() in /in/hmvH4:5 Stack trace: #0 {main} thrown in /in/hmvH4 on line 5
Process exited with code 255.
Output for 5.5.14 - 5.6.24
{"date":"2014-12-22 08:31:53.000000","timezone_type":1,"timezone":"+00:00"} Fatal error: Call to undefined method stdClass::format() in /in/hmvH4 on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.13
{"date":"2014-12-22 08:31:53","timezone_type":1,"timezone":"+00:00"} Fatal error: Call to undefined method stdClass::format() in /in/hmvH4 on line 5
Process exited with code 255.