3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo (DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('T'))));
Output for 7.4.0 - 7.4.1
Fatal error: Uncaught Error: Object of class DateTime could not be converted to string in /in/C0SFk:2 Stack trace: #0 {main} thrown in /in/C0SFk on line 2
Process exited with code 255.
Output for 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13
Recoverable fatal error: Object of class DateTime could not be converted to string in /in/C0SFk on line 2
Process exited with code 255.
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.33
Catchable fatal error: Object of class DateTime could not be converted to string in /in/C0SFk on line 2
Process exited with code 255.

preferences:
125.78 ms | 402 KiB | 157 Q