3v4l.org

run code in 300+ PHP versions simultaneously
<?php // In the beginning there are no Sundays counted yet $number_of_sundays = 0; // Make the following actions for all years of the twentieth century for ($year = 1900; $year <= 1999; $year++) { //Make the following actions for all months from January to December for ($month = 1; $month <= 12; $month++) { // Get Unix Timestamp of the current month and year on the first day of the month $current_date = mktime(0, 0, 0, $month, 01, $year); $get_day_of_week = date("D", $current_date); echo $year . ", " . $month . ": " . $get_day_of_week. "|" . var_export($current_date, true) . "\n"; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.3.60.0070.01118.55
8.3.50.0120.01021.14
8.3.40.0160.00318.82
8.3.30.0110.00820.34
8.3.20.0030.00720.61
8.3.10.0000.01020.92
8.3.00.0090.00322.52
8.2.180.0060.02116.63
8.2.170.0130.00722.96
8.2.160.0100.00720.39
8.2.150.0060.00324.18
8.2.140.0090.00324.66
8.2.130.0090.00026.16
8.2.120.0000.01021.05
8.2.110.0060.00619.30
8.2.100.0110.00417.83
8.2.90.0030.00719.18
8.2.80.0030.01018.04
8.2.70.0070.00817.75
8.2.60.0030.00618.05
8.2.50.0030.00618.07
8.2.40.0030.00618.21
8.2.30.0070.00419.49
8.2.20.0030.00617.85
8.2.10.0070.00317.75
8.2.00.0050.00517.92
8.1.280.0150.00825.92
8.1.270.0000.01123.99
8.1.260.0070.00326.35
8.1.250.0000.01028.09
8.1.240.0100.00322.54
8.1.230.0070.00720.95
8.1.220.0080.00318.77
8.1.210.0030.00618.96
8.1.200.0120.00017.50
8.1.190.0060.00317.41
8.1.180.0000.01118.10
8.1.170.0090.00018.65
8.1.160.0000.00918.93
8.1.150.0000.00918.78
8.1.140.0000.00917.61
8.1.130.0030.00717.95
8.1.120.0060.00317.70
8.1.110.0000.00917.62
8.1.100.0040.00517.60
8.1.90.0100.00017.58
8.1.80.0000.00917.49
8.1.70.0030.00817.59
8.1.60.0000.01217.57
8.1.50.0090.00017.54
8.1.40.0000.00917.58
8.1.30.0040.00717.72
8.1.20.0030.00717.83
8.1.10.0060.00317.50
8.1.00.0070.00417.59
8.0.300.0110.00019.94
8.0.290.0090.00017.28
8.0.280.0000.00918.41
8.0.270.0030.00617.34
8.0.260.0040.00417.01
8.0.250.0000.00917.00
8.0.240.0050.00816.97
8.0.230.0060.00316.98
8.0.220.0030.00617.00
8.0.210.0030.00617.08
8.0.200.0030.00617.09
8.0.190.0080.00417.12
8.0.180.0030.00616.89
8.0.170.0000.00917.05
8.0.160.0060.00317.08
8.0.150.0030.00716.87
8.0.140.0070.00417.02
8.0.130.0000.00813.36
8.0.120.0000.01117.02
8.0.110.0030.00617.03
8.0.100.0050.00517.13
8.0.90.0030.00616.91
8.0.80.0130.01017.01
8.0.70.0030.00716.92
8.0.60.0030.00616.89
8.0.50.0040.00716.83
8.0.30.0200.01417.32
8.0.20.0150.01217.40
8.0.10.0030.00717.21
8.0.00.0190.01216.81
7.4.330.0000.00716.80
7.4.320.0040.00416.61
7.4.300.0040.00416.59
7.4.290.0030.00716.64
7.4.280.0000.00916.69
7.4.270.0060.00316.63
7.4.260.0060.00813.37
7.4.250.0000.01016.68
7.4.240.0030.00616.60
7.4.230.0000.01016.74
7.4.220.0180.02216.68
7.4.210.0120.01316.67
7.4.200.0050.00516.46
7.4.190.0030.00716.41
7.4.160.0070.01716.65
7.4.150.0160.01317.40
7.4.140.0140.01717.86
7.4.130.0080.01716.71
7.4.120.0100.01916.68
7.4.110.0090.01816.59
7.4.100.0100.01716.50
7.4.90.0150.01916.79
7.4.80.0070.01719.39
7.4.70.0120.01416.78
7.4.60.0070.01916.68
7.4.50.0040.00716.52
7.4.40.0090.01322.77
7.4.30.0230.01016.67
7.3.330.0030.00313.19
7.3.320.0030.00313.20
7.3.310.0000.00916.31
7.3.300.0060.00316.31
7.3.290.0000.02216.35
7.3.280.0140.01316.35
7.3.270.0120.01517.40
7.3.260.0180.01518.24
7.3.250.0150.01216.56
7.3.240.0120.01516.58
7.3.230.0110.01516.46
7.3.210.0150.01216.57
7.3.200.0110.02519.39
7.3.190.0130.02016.48
7.3.180.0070.01716.53
7.3.170.0070.01916.75
7.3.160.0170.00816.60
7.2.330.0170.02016.57
7.2.320.0170.02016.82
7.2.310.0360.02616.93
7.2.300.0090.02616.83
7.2.290.0130.01316.66
7.0.80.0100.08319.93
7.0.70.0530.09719.97
7.0.60.0130.08319.91
7.0.50.0070.08720.38
7.0.40.0100.09020.06
7.0.30.0070.04720.18
7.0.20.0030.05019.96
7.0.10.0130.04320.09
7.0.00.0070.04719.99
5.6.230.0070.08720.68
5.6.220.0100.08720.62
5.6.210.0100.09320.55
5.6.200.0030.07320.96
5.6.190.0070.10021.03
5.6.180.0030.08720.96
5.6.170.0030.04721.08
5.6.160.0100.06321.17
5.6.150.0130.04021.04
5.6.140.0000.05021.07
5.6.130.0070.05020.99
5.6.120.0000.05321.00
5.6.110.0130.03320.95
5.6.100.0030.05021.02
5.6.90.0030.04321.11
5.6.80.0100.03320.38
5.6.70.0030.04720.31
5.6.60.0100.03320.48
5.6.50.0130.03020.34
5.6.40.0100.03720.32
5.6.30.0070.07020.32
5.6.20.0000.05020.38
5.6.10.0000.05020.39
5.6.00.0100.04320.45
5.5.370.0100.08320.43
5.5.360.0100.09320.34
5.5.350.0100.08720.46
5.5.340.0070.09020.92
5.5.330.0170.07020.64
5.5.320.0000.05020.83
5.5.310.0070.05320.79
5.5.300.0070.04320.77
5.5.290.0030.04720.77
5.5.280.0070.05020.82
5.5.270.0070.04320.88
5.5.260.0100.04020.92
5.5.250.0030.04320.61
5.5.240.0070.04020.26
5.5.230.0030.04320.27
5.5.220.0070.04320.28
5.5.210.0100.03320.26
5.5.200.0030.04719.99
5.5.190.0130.03320.25
5.5.180.0000.07720.08
5.5.160.0070.04320.08
5.5.150.0070.06320.10
5.5.140.0030.04720.25
5.5.130.0070.05020.27
5.5.120.0000.04319.99
5.5.110.0100.03720.13
5.5.100.0070.04020.01
5.5.90.0000.05020.14
5.5.80.0030.04720.06
5.5.70.0130.03019.94
5.5.60.0030.04320.02
5.5.50.0130.06020.00
5.5.40.0070.08320.08
5.5.30.0130.07720.13
5.5.20.0030.05320.04
5.5.10.0000.04320.08
5.5.00.0070.04020.07
5.4.450.0070.04019.36
5.4.440.0000.04319.14
5.4.430.0000.04719.10
5.4.420.0100.04319.54
5.4.410.0030.04319.25
5.4.400.0070.03718.88
5.4.390.0070.04019.03
5.4.380.0030.04019.06
5.4.370.0030.03719.12
5.4.360.0030.04019.12
5.4.350.0070.04319.03
5.4.340.0030.06318.97
5.4.320.0070.04319.11
5.4.310.0000.08719.03
5.4.300.0030.04019.23
5.4.290.0070.03719.06
5.4.280.0100.03718.99
5.4.270.0100.04019.21
5.4.260.0000.04319.02
5.4.250.0030.03718.98
5.4.240.0000.03718.93
5.4.230.0030.03718.80
5.4.220.0000.09018.96
5.4.210.0070.05319.04
5.4.200.0030.06018.80
5.4.190.0100.07318.93
5.4.180.0070.04018.77
5.4.170.0070.07718.93
5.4.160.0070.08719.02
5.4.150.0070.06718.93
5.4.140.0070.06716.42
5.4.130.0070.08316.10
5.4.120.0100.07316.11
5.4.110.0030.08716.47
5.4.100.0100.04716.43
5.4.90.0130.06316.43
5.4.80.0070.08016.26
5.4.70.0070.06716.46
5.4.60.0070.08016.18
5.4.50.0030.08016.21
5.4.40.0100.04316.43
5.4.30.0170.07716.23
5.4.20.0100.06716.46
5.4.10.0030.04316.23
5.4.00.0100.07315.81
5.3.290.0100.07314.64
5.3.280.0070.04714.59
5.3.270.0070.08714.51
5.3.260.0030.08314.57
5.3.250.0070.08014.46
5.3.240.0000.08314.54
5.3.230.0070.06714.43
5.3.220.0000.05314.55
5.3.210.0070.05314.57
5.3.200.0100.07314.55
5.3.190.0070.04714.38
5.3.180.0030.08014.54
5.3.170.0030.08014.51
5.3.160.0100.06714.52
5.3.150.0100.06714.55
5.3.140.0100.07314.51
5.3.130.0030.08714.36
5.3.120.0100.07714.45
5.3.110.0030.07314.53
5.3.100.0030.05013.89
5.3.90.0100.05314.00
5.3.80.0030.08013.77
5.3.70.0070.05313.87
5.3.60.0130.07313.93
5.3.50.0070.08013.89
5.3.40.0000.06313.80
5.3.30.0000.08713.76
5.3.20.0030.08313.45
5.3.10.0100.07313.66
5.3.00.0170.05013.64

preferences:
40.99 ms | 401 KiB | 5 Q