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. "($current_date)" . "\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.0090.01618.30
8.3.50.0160.01221.21
8.3.40.0130.01318.84
8.3.30.0100.00720.20
8.3.20.0040.00720.21
8.3.10.0070.00421.08
8.3.00.0070.00322.46
8.2.180.0030.01616.75
8.2.170.0030.02122.96
8.2.160.0140.00320.39
8.2.150.0030.00624.18
8.2.140.0030.00724.66
8.2.130.0090.00026.16
8.2.120.0030.00620.78
8.2.110.0060.00619.31
8.2.100.0070.00718.03
8.2.90.0050.00519.35
8.2.80.0000.01117.97
8.2.70.0080.00317.75
8.2.60.0100.00317.93
8.2.50.0060.00318.07
8.2.40.0080.00418.28
8.2.30.0000.00919.43
8.2.20.0000.01017.86
8.2.10.0040.00818.03
8.2.00.0060.00317.81
8.1.280.0150.00625.92
8.1.270.0030.00623.99
8.1.260.0070.00326.35
8.1.250.0030.00628.09
8.1.240.0030.01022.54
8.1.230.0070.00720.89
8.1.220.0080.00418.77
8.1.210.0070.00320.94
8.1.200.0080.00517.23
8.1.190.0000.00917.53
8.1.180.0070.00318.10
8.1.170.0030.00618.43
8.1.160.0060.00319.03
8.1.150.0030.00618.78
8.1.140.0060.00317.50
8.1.130.0030.00718.02
8.1.120.0040.00717.54
8.1.110.0060.00317.45
8.1.100.0040.00717.48
8.1.90.0030.00717.63
8.1.80.0000.01017.52
8.1.70.0030.00717.48
8.1.60.0030.00717.65
8.1.50.0030.00717.59
8.1.40.0030.00617.43
8.1.30.0080.00317.70
8.1.20.0080.00317.78
8.1.10.0000.01017.55
8.1.00.0000.01017.47
8.0.300.0090.00019.98
8.0.290.0030.00617.28
8.0.280.0050.00518.42
8.0.270.0060.00317.26
8.0.260.0060.00616.96
8.0.250.0030.00617.11
8.0.240.0030.00917.13
8.0.230.0030.00617.08
8.0.220.0060.00316.93
8.0.210.0030.00616.93
8.0.200.0090.00017.09
8.0.190.0040.00717.05
8.0.180.0030.00616.93
8.0.170.0030.00617.06
8.0.160.0040.00717.02
8.0.150.0000.01016.89
8.0.140.0060.00617.03
8.0.130.0000.00913.28
8.0.120.0000.01017.03
8.0.110.0030.00717.02
8.0.100.0070.00317.05
8.0.90.0060.00316.93
8.0.80.0030.01817.07
8.0.70.0000.01116.91
8.0.60.0030.00616.93
8.0.50.0030.00716.83
8.0.30.0210.00717.20
8.0.20.0130.01617.40
8.0.10.0030.00617.10
8.0.00.0160.01716.80
7.4.330.0040.00416.79
7.4.320.0000.01016.58
7.4.300.0000.00916.59
7.4.290.0030.00616.69
7.4.280.0030.00716.58
7.4.270.0060.00316.60
7.4.260.0030.00613.29
7.4.250.0070.00416.50
7.4.240.0100.00016.57
7.4.230.0000.01016.41
7.4.220.0170.02316.65
7.4.210.0090.01516.52
7.4.200.0040.00716.60
7.4.190.0030.00616.47
7.4.160.0100.01416.80
7.4.150.0190.01317.40
7.4.140.0050.02417.86
7.4.130.0050.02616.61
7.4.120.0140.01316.55
7.4.110.0210.01116.49
7.4.100.0100.01616.48
7.4.90.0140.01316.75
7.4.80.0030.02719.39
7.4.70.0040.02016.53
7.4.60.0070.02016.56
7.4.50.0030.00716.75
7.4.40.0130.01022.77
7.4.30.0250.00016.45
7.4.00.0030.01714.85
7.3.330.0000.00713.13
7.3.320.0070.00013.38
7.3.310.0000.00916.33
7.3.300.0030.00716.29
7.3.290.0040.01616.45
7.3.280.0130.01016.42
7.3.270.0140.01317.40
7.3.260.0200.01418.24
7.3.250.0130.01816.49
7.3.240.0220.00316.50
7.3.230.0130.02616.67
7.3.210.0090.01816.71
7.3.200.0230.01319.39
7.3.190.0090.02216.69
7.3.180.0130.01016.40
7.3.170.0030.02016.42
7.3.160.0140.01016.63
7.3.120.0070.01114.89
7.2.330.0080.02016.57
7.2.320.0170.01817.04
7.2.310.0090.01916.82
7.2.300.0070.01716.70
7.2.290.0130.01316.93
7.2.00.0070.01019.40
7.1.200.0100.00615.77
7.1.100.0000.01218.25
7.1.70.0070.00517.10
7.1.60.0190.01019.17
7.1.50.0140.01717.02
7.1.00.0000.04022.40
7.0.200.0090.00616.80
7.0.140.0030.07721.95
7.0.100.0430.08719.96
7.0.90.0400.09019.84
7.0.80.0570.07020.03
7.0.70.0530.03019.87
7.0.60.0400.07019.93
7.0.50.0500.07320.25
7.0.40.0130.08319.99
7.0.30.0130.08020.10
7.0.20.0000.09320.13
7.0.10.0070.08020.06
7.0.00.0070.09019.98
5.6.280.0070.08021.12
5.6.250.0100.08320.61
5.6.240.0170.09320.57
5.6.230.0030.07020.59
5.6.220.0030.04320.73
5.6.210.0070.06720.66
5.6.200.0130.04721.06
5.6.190.0130.09321.03
5.6.180.0100.07021.05
5.6.170.0100.08320.93
5.6.160.0070.05021.07
5.6.150.0100.07321.01
5.6.140.0130.08721.03
5.6.130.0030.07321.03
5.6.120.0070.09321.09
5.6.110.0100.09021.09
5.6.100.0070.04720.91
5.6.90.0100.08321.03
5.6.80.0030.04020.41
5.6.70.0070.08020.29
5.6.60.0170.06720.40
5.6.50.0170.08020.41
5.6.40.0100.08320.31
5.6.30.0200.06720.37
5.6.20.0130.04720.36
5.6.10.0000.09320.36
5.6.00.0000.05720.29
5.5.380.0100.08020.40
5.5.370.0100.06720.34
5.5.360.0100.05020.55
5.5.350.0070.06020.37
5.5.340.0170.08320.64
5.5.330.0070.09020.91
5.5.320.0200.08020.75
5.5.310.0170.07720.88
5.5.300.0170.06020.72
5.5.290.0100.08020.80
5.5.280.0130.07320.90
5.5.270.0100.08020.79
5.5.260.0030.05320.89
5.5.250.0100.04720.56
5.5.240.0030.07020.30
5.5.230.0070.09320.27
5.5.220.0270.06020.09
5.5.210.0070.08320.23
5.5.200.0100.06720.25
5.5.190.0100.08719.98
5.5.180.0070.08720.23
5.5.160.0130.07720.22
5.5.150.0070.09720.15
5.5.140.0030.08720.25
5.5.130.0100.06720.11
5.5.120.0100.08320.20
5.5.110.0070.09020.23
5.5.100.0100.08320.09
5.5.90.0100.05320.05
5.5.80.0100.07320.11
5.5.70.0000.08720.11
5.5.60.0100.05719.92
5.5.50.0070.08020.14
5.5.40.0070.08320.01
5.5.30.0030.05320.06
5.5.20.0100.07319.94
5.5.10.0170.07020.03
5.5.00.0070.07720.11
5.4.450.0100.06319.12
5.4.440.0030.08719.11
5.4.430.0070.07719.44
5.4.420.0100.04319.41
5.4.410.0070.08019.26
5.4.400.0070.03719.15
5.4.390.0100.06719.05
5.4.380.0170.07719.03
5.4.370.0170.07019.12
5.4.360.0070.05019.23
5.4.350.0100.04019.14
5.4.340.0130.07318.90
5.4.320.0070.08019.03
5.4.310.0100.04019.09
5.4.300.0100.08318.78
5.4.290.0100.08019.02
5.4.280.0070.07719.06
5.4.270.0070.07719.06
5.4.260.0100.08019.03
5.4.250.0070.07319.11
5.4.240.0070.04719.05
5.4.230.0070.04319.05
5.4.220.0070.08719.02
5.4.210.0100.07318.96
5.4.200.0070.04719.22
5.4.190.0100.05019.08
5.4.180.0130.07718.96
5.4.170.0070.08318.80
5.4.160.0030.06719.21
5.4.150.0130.07319.04
5.4.140.0070.05716.38
5.4.130.0100.07316.25
5.4.120.0100.06716.36
5.4.110.0100.07316.44
5.4.100.0030.07316.39
5.4.90.0170.05716.36
5.4.80.0130.04016.48
5.4.70.0130.08716.47
5.4.60.0030.05016.31
5.4.50.0100.07316.31
5.4.40.0070.08016.23
5.4.30.0070.08016.39
5.4.20.0130.07016.37
5.4.10.0070.04716.32
5.4.00.0100.06715.76
5.3.290.0000.09014.66
5.3.280.0070.08014.46
5.3.270.0100.08014.56
5.3.260.0000.06714.55
5.3.250.0070.08314.59
5.3.240.0070.08714.62
5.3.230.0030.05014.43
5.3.220.0100.08014.38
5.3.210.0070.05014.52
5.3.200.0000.05314.57
5.3.190.0030.04714.55
5.3.180.0070.08014.46
5.3.170.0100.07314.39
5.3.160.0100.07714.50
5.3.150.0030.07714.43
5.3.140.0070.05714.54
5.3.130.0070.08314.40
5.3.120.0030.04314.53
5.3.110.0100.05314.53
5.3.100.0100.07713.89
5.3.90.0230.06013.99
5.3.80.0130.07013.86
5.3.70.0070.04714.00
5.3.60.0070.08013.98
5.3.50.0070.08313.89
5.3.40.0130.05713.88
5.3.30.0070.07313.90
5.3.20.0030.06713.65
5.3.10.0170.07313.61
5.3.00.0100.07313.59

preferences:
64.03 ms | 401 KiB | 5 Q