3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo strtotime(); echo strtotime('12 hours ago');
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 ArgumentCountError: strtotime() expects at least 1 argument, 0 given in /in/s8L9V:2 Stack trace: #0 /in/s8L9V(2): strtotime() #1 {main} thrown in /in/s8L9V on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.45, 5.5.0 - 5.5.14, 5.5.16 - 5.5.38, 5.6.0 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1381107627
Output for 5.3.29, 5.5.15
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1381107628
Output for 5.2.16 - 5.2.17
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019078
Output for 5.2.15
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019079
Output for 5.2.14
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019080
Output for 5.2.13
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019081
Output for 5.2.12
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019082
Output for 5.2.11
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019083
Output for 5.2.9 - 5.2.10
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019084
Output for 5.2.7 - 5.2.8
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019085
Output for 5.2.6
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019086
Output for 5.2.4 - 5.2.5
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019087
Output for 5.2.2 - 5.2.3
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019088
Output for 5.2.1
Warning: strtotime() expects at least 1 parameter, 0 given in /in/s8L9V on line 2 1454019089
Output for 5.1.6, 5.2.0
1454019090
Output for 5.1.5
1454019091
Output for 5.1.2 - 5.1.4
1454019092
Output for 5.1.1
1454019093
Output for 5.1.0
1454019094
Output for 4.4.0 - 4.4.1, 5.0.5
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019094
Output for 4.3.10 - 4.3.11, 5.0.3 - 5.0.4
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019095
Output for 5.0.0 - 5.0.2
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1453978800
Output for 4.4.9
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019085
Output for 4.4.8
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019086
Output for 4.4.7
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019088
Output for 4.4.5 - 4.4.6
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019089
Output for 4.4.4
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019090
Output for 4.4.3
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019091
Output for 4.4.2
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019093
Output for 4.3.9
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019096
Output for 4.3.5 - 4.3.8
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019097
Output for 4.3.0 - 4.3.4
Warning: Wrong parameter count for strtotime() in /in/s8L9V on line 2 1454019098

preferences:
323.36 ms | 401 KiB | 460 Q