3v4l.org

run code in 300+ PHP versions simultaneously
<?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');
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
{"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.5.38, 5.6.0 - 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.

preferences:
182.77 ms | 401 KiB | 224 Q