3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo "# # 1981-03-28 02:30:00 # "; print_r(getdate(mktime(2, 30, 0, 3, 28, 1981))); echo " # # 1981-03-29 02:30:00 # "; print_r(getdate(mktime(2, 30, 0, 3, 29, 1981))); echo " # # 1981-03-30 02:30:00 # "; print_r(getdate(mktime(2, 30, 0, 3, 30, 1981)));
Output for 4.3.0 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 5.0.5, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.24 - 5.5.35, 5.6.8 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.20, 7.2.0 - 7.2.33, 7.3.16 - 7.3.31, 7.4.0 - 7.4.26, 8.0.0 - 8.0.12, 8.1rc1 - rc3
# # 1981-03-28 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 2 [mday] => 28 [wday] => 6 [mon] => 3 [year] => 1981 [yday] => 86 [weekday] => Saturday [month] => March [0] => 354591000 ) # # 1981-03-29 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 3 [mday] => 29 [wday] => 0 [mon] => 3 [year] => 1981 [yday] => 87 [weekday] => Sunday [month] => March [0] => 354677400 ) # # 1981-03-30 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 2 [mday] => 30 [wday] => 1 [mon] => 3 [year] => 1981 [yday] => 88 [weekday] => Monday [month] => March [0] => 354760200 )
Output for 7.3.32 - 7.3.33, 8.0.13
# # 1981-03-28 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 2 [mday] => 28 [wday] => 6 [mon] => 3 [year] => 1981 [yday] => 86 [weekday] => Saturday [month] => March [0] => 354594600 ) # # 1981-03-29 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 2 [mday] => 29 [wday] => 0 [mon] => 3 [year] => 1981 [yday] => 87 [weekday] => Sunday [month] => March [0] => 354681000 ) # # 1981-03-30 02:30:00 # Array ( [seconds] => 0 [minutes] => 30 [hours] => 2 [mday] => 30 [wday] => 1 [mon] => 3 [year] => 1981 [yday] => 88 [weekday] => Monday [month] => March [0] => 354767400 )

preferences:
49.67 ms | 537 KiB | 15 Q