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."\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.0130.01318.16
8.3.50.0270.00821.15
8.3.40.0170.01018.57
8.3.30.0070.01019.92
8.3.20.0070.00420.47
8.3.10.0070.00421.00
8.3.00.0030.00722.40
8.2.180.0100.01025.92
8.2.170.0160.01319.13
8.2.160.0100.00720.34
8.2.150.0210.00024.18
8.2.140.0030.00624.66
8.2.130.0030.00726.16
8.2.120.0060.00321.02
8.2.110.0040.00822.30
8.2.100.0000.01417.64
8.2.90.0030.00617.63
8.2.80.0060.00317.97
8.2.70.0040.00718.05
8.2.60.0030.00618.05
8.2.50.0050.00518.10
8.2.40.0000.00920.67
8.2.30.0040.00419.43
8.2.20.0070.00317.71
8.2.10.0030.00717.85
8.2.00.0060.00317.92
8.1.280.0130.01325.92
8.1.270.0000.01023.64
8.1.260.0050.00526.35
8.1.250.0030.00628.09
8.1.240.0220.00620.68
8.1.230.0030.01419.02
8.1.220.0030.00717.77
8.1.210.0030.00618.77
8.1.200.0030.01017.48
8.1.190.0070.00417.35
8.1.180.0060.00318.10
8.1.170.0040.00718.59
8.1.160.0070.00319.00
8.1.150.0000.01018.81
8.1.140.0000.00917.49
8.1.130.0040.00417.93
8.1.120.0040.00417.66
8.1.110.0100.00017.46
8.1.100.0000.00917.61
8.1.90.0040.00717.59
8.1.80.0000.00917.62
8.1.70.0000.00917.56
8.1.60.0100.00017.62
8.1.50.0030.00617.57
8.1.40.0080.00417.60
8.1.30.0000.00917.65
8.1.20.0000.01117.68
8.1.10.0070.00417.57
8.1.00.0080.00317.47
8.0.300.0000.01021.59
8.0.290.0060.00616.75
8.0.280.0000.00918.45
8.0.270.0030.00617.41
8.0.260.0030.00716.96
8.0.250.0030.00717.07
8.0.240.0120.00417.12
8.0.230.0030.00617.13
8.0.220.0030.00617.06
8.0.210.0030.00717.04
8.0.200.0030.00617.11
8.0.190.0000.01117.01
8.0.180.0060.00317.05
8.0.170.0030.00616.96
8.0.160.0070.00416.96
8.0.150.0030.00616.86
8.0.140.0030.00716.95
8.0.130.0030.00713.38
8.0.120.0000.01017.04
8.0.110.0030.00716.95
8.0.100.0050.00516.91
8.0.90.0000.00916.83
8.0.80.0140.00916.98
8.0.70.0000.01016.98
8.0.60.0000.01016.82
8.0.50.0060.00316.91
8.0.30.0170.01217.13
8.0.20.0150.01917.40
8.0.10.0000.00917.03
8.0.00.0210.01716.94
7.4.330.0080.00016.73
7.4.320.0030.00616.68
7.4.300.0000.01116.57
7.4.290.0030.00616.60
7.4.280.0000.00916.66
7.4.270.0030.00616.65
7.4.260.0050.00313.30
7.4.250.0080.00416.48
7.4.240.0050.00516.53
7.4.230.0000.00916.40
7.4.220.0180.02216.63
7.4.210.0070.01516.59
7.4.200.0060.00316.63
7.4.190.0090.00016.56
7.4.160.0140.01816.43
7.4.150.0130.01317.40
7.4.140.0130.01617.86
7.4.130.0110.01716.58
7.4.120.0130.01416.60
7.4.110.0160.01016.59
7.4.100.0140.01416.62
7.4.90.0100.01716.57
7.4.80.0120.02219.39
7.4.70.0120.01516.36
7.4.60.0190.01016.67
7.4.50.0000.01216.70
7.4.40.0070.01322.77
7.4.30.0110.01916.72
7.4.00.0060.01215.07
7.3.330.0030.00513.25
7.3.320.0040.00413.25
7.3.310.0000.00916.42
7.3.300.0030.00616.32
7.3.290.0120.01516.38
7.3.280.0080.01516.29
7.3.270.0180.01017.40
7.3.260.0120.01518.24
7.3.250.0120.01516.59
7.3.240.0200.01416.75
7.3.230.0070.02316.61
7.3.210.0080.01916.54
7.3.200.0120.01219.39
7.3.190.0170.00916.66
7.3.180.0160.00616.40
7.3.170.0150.00716.52
7.3.160.0140.02016.54
7.3.120.0030.01615.04
7.2.330.0120.01216.59
7.2.320.0130.01716.88
7.2.310.0170.01016.74
7.2.300.0090.01516.57
7.2.290.0130.01316.57
7.2.110.0390.01116.46
7.2.60.0060.01317.08
7.1.200.0030.01215.59
7.1.70.0030.00617.30
7.1.60.0160.01619.17
7.1.50.0100.02017.18
7.1.00.0070.05022.54
7.0.200.0100.01316.98
7.0.140.0070.07321.98
7.0.100.0100.08020.11
7.0.90.0400.08719.84
7.0.80.0470.08019.86
7.0.70.0030.08319.96
7.0.60.0100.08719.91
7.0.50.0000.09720.25
7.0.40.0100.05019.94
7.0.30.0130.09020.09
7.0.20.0030.07720.02
7.0.10.0100.08320.13
7.0.00.0070.07719.98
5.6.280.0000.08321.13
5.6.250.0030.09720.57
5.6.240.0170.08320.61
5.6.230.0100.08020.60
5.6.220.0100.08720.61
5.6.210.0130.08020.59
5.6.200.0270.07020.99
5.6.190.0030.09020.98
5.6.180.0030.06320.96
5.6.170.0100.08021.12
5.6.160.0070.07720.88
5.6.150.0170.08321.05
5.6.140.0200.08020.96
5.6.130.0130.04320.89
5.6.120.0030.08021.11
5.6.110.0030.05020.93
5.6.100.0170.07021.10
5.6.90.0100.07020.98
5.6.80.0070.08720.34
5.6.70.0030.09020.39
5.6.60.0070.08720.28
5.6.50.0100.07320.41
5.6.40.0030.05320.34
5.6.30.0000.08020.37
5.6.20.0070.07320.37
5.6.10.0070.06020.40
5.6.00.0100.04720.33
5.5.380.0130.08320.44
5.5.370.0200.07020.29
5.5.360.0070.04320.28
5.5.350.0100.08720.29
5.5.340.0130.08320.81
5.5.330.0130.04720.72
5.5.320.0070.07320.83
5.5.310.0000.08020.86
5.5.300.0170.08320.59
5.5.290.0230.07320.82
5.5.280.0000.07720.82
5.5.270.0070.11020.71
5.5.260.0070.05320.57
5.5.250.0070.09020.64
5.5.240.0130.07020.20
5.5.230.0100.08319.97
5.5.220.0070.07720.10
5.5.210.0070.07720.16
5.5.200.0200.06320.13
5.5.190.0170.07720.12
5.5.180.0070.08720.17
5.5.160.0130.06020.13
5.5.150.0100.06720.18
5.5.140.0230.07720.19
5.5.130.0100.05320.05
5.5.120.0030.08720.13
5.5.110.0170.07320.07
5.5.100.0070.04720.01
5.5.90.0030.06020.04
5.5.80.0070.08320.00
5.5.70.0170.08020.03
5.5.60.0100.08720.03
5.5.50.0070.06020.06
5.5.40.0070.07319.97
5.5.30.0200.05320.07
5.5.20.0070.04020.00
5.5.10.0000.06019.90
5.5.00.0070.05319.90
5.4.450.0100.08719.37
5.4.440.0070.07019.44
5.4.430.0070.07019.54
5.4.420.0100.06319.38
5.4.410.0100.03719.17
5.4.400.0070.07718.96
5.4.390.0070.09019.03
5.4.380.0000.08019.06
5.4.370.0170.08719.03
5.4.360.0200.08319.06
5.4.350.0070.07719.05
5.4.340.0170.07019.14
5.4.320.0170.07019.07
5.4.310.0070.04019.10
5.4.300.0030.05719.05
5.4.290.0070.04018.80
5.4.280.0130.08019.02
5.4.270.0130.07019.09
5.4.260.0070.04019.21
5.4.250.0030.08018.84
5.4.240.0070.08718.89
5.4.230.0000.08318.80
5.4.220.0100.04019.11
5.4.210.0230.04018.80
5.4.200.0130.06319.11
5.4.190.0100.06319.04
5.4.180.0130.08319.13
5.4.170.0070.08318.77
5.4.160.0070.04318.87
5.4.150.0070.08718.94
5.4.140.0100.07316.13
5.4.130.0100.07716.26
5.4.120.0030.08316.36
5.4.110.0070.04716.39
5.4.100.0100.07716.26
5.4.90.0030.04716.45
5.4.80.0100.04716.43
5.4.70.0130.07016.26
5.4.60.0030.08316.20
5.4.50.0100.07716.40
5.4.40.0130.07716.29
5.4.30.0100.08016.45
5.4.20.0070.06016.30
5.4.10.0130.06016.38
5.4.00.0070.08015.74
5.3.290.0130.06314.50
5.3.280.0100.07714.57
5.3.270.0030.04714.58
5.3.260.0000.09014.54
5.3.250.0070.05014.61
5.3.240.0130.06014.59
5.3.230.0070.06714.58
5.3.220.0030.05714.57
5.3.210.0070.07014.47
5.3.200.0070.04714.51
5.3.190.0170.04714.55
5.3.180.0070.08314.49
5.3.170.0070.07014.52
5.3.160.0100.07714.57
5.3.150.0100.08014.51
5.3.140.0030.08714.51
5.3.130.0000.08014.47
5.3.120.0100.06714.47
5.3.110.0070.07714.54
5.3.100.0100.08014.47
5.3.90.0070.05314.47
5.3.80.0030.04714.47
5.3.70.0030.07314.47
5.3.60.0030.04714.47
5.3.50.0070.05714.47
5.3.40.0100.04014.47
5.3.30.0030.06714.47
5.3.20.0030.05714.47
5.3.10.0000.06014.47
5.3.00.0070.06314.47
5.2.170.0030.07314.47
5.2.160.0000.05314.47
5.2.150.0100.05714.47
5.2.140.0030.07314.47
5.2.130.0100.06014.47
5.2.120.0070.07014.47
5.2.110.0000.07714.47
5.2.100.0030.07314.47
5.2.90.0070.06314.47
5.2.80.0030.07714.47
5.2.70.0070.05314.47
5.2.60.0100.04714.47
5.2.50.0100.06014.47
5.2.40.0070.03314.47
5.2.30.0130.04014.47
5.2.20.0170.05014.47
5.2.10.0000.05714.47
5.2.00.0070.05014.47
5.1.60.0070.02314.47
5.1.50.0070.05314.47
5.1.40.0100.03014.47
5.1.30.0030.06714.47
5.1.20.0030.03014.47
5.1.10.0130.02714.47
5.1.00.0030.02714.47
5.0.50.0070.02314.47
5.0.40.0130.04314.47
5.0.30.0100.03714.47
5.0.20.0130.04314.47
5.0.10.0200.04714.47
5.0.00.0100.06014.47
4.4.90.0130.04314.47
4.4.80.0170.02314.47
4.4.70.0200.04314.47
4.4.60.0170.03714.47
4.4.50.0030.04714.47
4.4.40.0200.04714.47
4.4.30.0130.02714.47
4.4.20.0070.02014.47
4.4.10.0100.02314.47
4.4.00.0100.03714.47
4.3.110.0100.02714.47
4.3.100.0100.04314.47
4.3.90.0130.04714.47
4.3.80.0070.05314.47
4.3.70.0130.04014.47
4.3.60.0170.03714.47
4.3.50.0030.04314.47
4.3.40.0130.05314.47
4.3.30.0030.04014.47
4.3.20.0070.02314.47
4.3.10.0100.04014.47
4.3.00.0130.03014.47

preferences:
41.27 ms | 401 KiB | 5 Q