3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 12345678901234567890; var_dump(date('Y-m-d', $time));
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, float given in /in/AcIUo:4 Stack trace: #0 /in/AcIUo(4): date('Y-m-d', 1.2345678901235E+19) #1 {main} thrown in /in/AcIUo on line 4
Process exited with code 255.
Output for 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: date() expects parameter 2 to be int, float given in /in/AcIUo on line 4 bool(false)
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33
Warning: date() expects parameter 2 to be integer, float given in /in/AcIUo on line 4 bool(false)
Output for 5.4.0 - 5.4.45, 5.5.0 - 5.5.37, 5.6.0 - 5.6.28
string(19) "-193335056894-06-06"

preferences:
251.75 ms | 402 KiB | 295 Q