3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date = new DateTime("now"); echo $date->format('Y-m-d\Th:i:s:u \G\M\TO'); echo "\n---\n"; $input = '2020-01-07T11:55:34:438 GMT+0600'; echo $input; echo "\n---\n"; $date = DateTime::createFromFormat('Y-m-d\Th:i:s:u \G\M\TO', $input); echo $date->format('Y-m-d h:i:s'); echo "\n===\n"; var_dump($date);

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
150.53 ms | 2155 KiB | 9 Q