3v4l.org

run code in 300+ PHP versions simultaneously
<?php $appt_start = "2011-03-30 20:30:00"; echo date($appt_start, "m-d-Y");
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught TypeError: date(): Argument #2 ($timestamp) must be of type ?int, string given in /in/DufbQ:5 Stack trace: #0 /in/DufbQ(5): date('2011-03-30 20:3...', 'm-d-Y') #1 {main} thrown in /in/DufbQ on line 5
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, string given in /in/DufbQ on line 5
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, string given in /in/DufbQ on line 5
Output for 5.5.0 - 5.5.37, 5.6.0 - 5.6.28
Warning: date() expects parameter 2 to be long, string given in /in/DufbQ on line 5

preferences:
194.67 ms | 402 KiB | 252 Q