3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('T'))); echo $now->fomrat("Ymd H:i:s");
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Fatal error: Uncaught Error: Call to undefined method DateTime::fomrat() in /in/VbT16:3 Stack trace: #0 {main} thrown in /in/VbT16 on line 3
Process exited with code 255.

preferences:
73.1 ms | 402 KiB | 68 Q