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.0100.01618.55
8.3.50.0180.01021.21
8.3.40.0140.01019.02
8.3.30.0130.00720.38
8.3.20.0000.01020.57
8.3.10.0070.00321.21
8.3.00.0060.00322.57
8.2.180.0180.01116.75
8.2.170.0160.01022.96
8.2.160.0170.00020.35
8.2.150.0000.01024.18
8.2.140.0000.01324.66
8.2.130.0030.00726.16
8.2.120.0000.01120.78
8.2.110.0080.00422.14
8.2.100.0090.00618.03
8.2.90.0030.00617.75
8.2.80.0060.00318.86
8.2.70.0060.00317.93
8.2.60.0110.00017.75
8.2.50.0030.00617.75
8.2.40.0030.00619.88
8.2.30.0030.00619.50
8.2.20.0030.00717.71
8.2.10.0090.00017.82
8.2.00.0100.00017.99
8.1.280.0090.00925.92
8.1.270.0070.00323.99
8.1.260.0030.00726.35
8.1.250.0070.00328.09
8.1.240.0130.00023.87
8.1.230.0150.00018.99
8.1.220.0090.00017.91
8.1.210.0030.00618.77
8.1.200.0080.00417.48
8.1.190.0060.00317.48
8.1.180.0030.00618.10
8.1.170.0040.00817.62
8.1.160.0000.01318.93
8.1.150.0030.00618.68
8.1.140.0100.00017.52
8.1.130.0090.00017.83
8.1.120.0060.00317.60
8.1.110.0080.00417.63
8.1.100.0090.00017.59
8.1.90.0030.00717.60
8.1.80.0070.00317.47
8.1.70.0050.00517.56
8.1.60.0070.00317.52
8.1.50.0060.00317.58
8.1.40.0040.00717.48
8.1.30.0030.00617.72
8.1.20.0000.01117.66
8.1.10.0000.01117.57
8.1.00.0110.00017.45
8.0.300.0070.00418.77
8.0.290.0030.00716.75
8.0.280.0030.00618.52
8.0.270.0060.00317.26
8.0.260.0040.00416.96
8.0.250.0060.00617.14
8.0.240.0060.00617.13
8.0.230.0030.00717.07
8.0.220.0030.00717.03
8.0.210.0030.00617.10
8.0.200.0030.00617.01
8.0.190.0040.00717.05
8.0.180.0060.00317.09
8.0.170.0030.00717.07
8.0.160.0060.00317.08
8.0.150.0080.00417.00
8.0.140.0060.00317.03
8.0.130.0000.01013.39
8.0.120.0030.00617.02
8.0.110.0030.00616.89
8.0.100.0030.00616.93
8.0.90.0000.01017.02
8.0.80.0060.02517.01
8.0.70.0060.00317.05
8.0.60.0000.00917.05
8.0.50.0000.01017.00
8.0.30.0180.01517.22
8.0.20.0110.02117.40
8.0.10.0000.00917.05
8.0.00.0120.01516.93
7.4.330.0000.00816.69
7.4.320.0000.01016.48
7.4.300.0050.00516.56
7.4.290.0090.00016.59
7.4.280.0000.00916.72
7.4.270.0030.00716.69
7.4.260.0050.00213.29
7.4.250.0030.00716.54
7.4.240.0070.00316.52
7.4.230.0000.01016.70
7.4.220.0100.02916.64
7.4.210.0100.01316.63
7.4.200.0030.00716.71
7.4.190.0030.00716.79
7.4.160.0070.02616.53
7.4.150.0090.02017.40
7.4.140.0110.01817.86
7.4.130.0110.01416.69
7.4.120.0110.01616.45
7.4.110.0190.00616.48
7.4.100.0170.01016.66
7.4.90.0130.01516.55
7.4.80.0030.03219.39
7.4.70.0140.01416.52
7.4.60.0170.00816.47
7.4.50.0090.00316.22
7.4.40.0070.01622.77
7.4.30.0160.01916.31
7.4.00.0030.01614.91
7.3.330.0040.00413.07
7.3.320.0000.00713.02
7.3.310.0060.00316.27
7.3.300.0050.00516.20
7.3.290.0090.01316.28
7.3.280.0110.01416.32
7.3.270.0100.01617.40
7.3.260.0120.02018.24
7.3.250.0150.01716.56
7.3.240.0210.01016.46
7.3.230.0120.01516.43
7.3.210.0180.01216.51
7.3.200.0030.03319.39
7.3.190.0150.01116.62
7.3.180.0160.00916.25
7.3.170.0090.01516.44
7.3.160.0130.01716.56
7.3.120.0100.01015.12
7.3.10.0110.00816.60
7.3.00.0110.00416.59
7.2.330.0080.01916.62
7.2.320.0130.01716.80
7.2.310.0100.01716.74
7.2.300.0100.01316.89
7.2.290.0120.01516.48
7.2.130.0130.00617.11
7.2.120.0030.01617.18
7.2.110.0070.01417.09
7.2.100.0100.00617.17
7.2.90.0150.00416.86
7.2.80.0050.01216.98
7.2.70.0070.01017.00
7.2.60.0100.00916.87
7.2.50.0120.00416.96
7.2.40.0030.01316.93
7.2.30.0030.01216.98
7.2.20.0130.00317.03
7.2.10.0000.02017.00
7.2.00.0070.00818.34
7.1.250.0090.01215.76
7.1.200.0100.00315.93
7.1.100.0000.01218.39
7.1.70.0030.00617.26
7.1.60.0230.01019.17
7.1.50.0060.01517.30
7.1.00.0030.03722.35
7.0.200.0040.01117.02
7.0.140.0070.07722.12
7.0.100.0100.09019.99
7.0.90.0170.07719.96
7.0.80.0130.08019.85
7.0.70.0130.08019.95
7.0.60.0000.09719.95
7.0.50.0170.06720.16
7.0.40.0100.08020.11
7.0.30.0030.10720.15
7.0.20.0070.09020.11
7.0.10.0100.03320.14
7.0.00.0030.08720.09
5.6.280.0100.08020.90
5.6.250.0000.05020.69
5.6.240.0170.07720.69
5.6.230.0000.08020.63
5.6.220.0000.10320.66
5.6.210.0200.07720.57
5.6.200.0130.08321.11
5.6.190.0030.08720.99
5.6.180.0070.08320.96
5.6.170.0170.07320.95
5.6.160.0030.09021.01
5.6.150.0070.04021.16
5.6.140.0170.05320.94
5.6.130.0070.09021.07
5.6.120.0030.09321.07
5.6.110.0030.08021.08
5.6.100.0000.09321.02
5.6.90.0100.07321.01
5.6.80.0130.06020.46
5.6.70.0000.05020.41
5.6.60.0100.07020.40
5.6.50.0130.06320.40
5.6.40.0130.08320.29
5.6.30.0130.05020.41
5.6.20.0200.06320.38
5.6.10.0170.07320.41
5.6.00.0070.06320.33
5.5.380.0100.07720.54
5.5.370.0100.05720.36
5.5.360.0100.08320.39
5.5.350.0030.03720.41
5.5.340.0000.05020.88
5.5.330.0000.09720.64
5.5.320.0030.04020.93
5.5.310.0030.08320.78
5.5.300.0200.07020.91
5.5.290.0030.04320.88
5.5.280.0070.09020.75
5.5.270.0100.08320.79
5.5.260.0100.08320.75
5.5.250.0000.06720.63
5.5.240.0130.08020.11
5.5.230.0070.06320.26
5.5.220.0130.05020.17
5.5.210.0070.09320.30
5.5.200.0000.07720.23
5.5.190.0070.08320.18
5.5.180.0130.06020.23
5.5.160.0070.07720.18
5.5.150.0100.05320.14
5.5.140.0130.04320.08
5.5.130.0030.04720.14
5.5.120.0070.07020.09
5.5.110.0070.08020.13
5.5.100.0030.08320.07
5.5.90.0030.08319.97
5.5.80.0100.07720.04
5.5.70.0130.05720.00
5.5.60.0130.07320.05
5.5.50.0200.06719.99
5.5.40.0100.06319.91
5.5.30.0130.07020.14
5.5.20.0000.07019.99
5.5.10.0170.05020.04
5.5.00.0070.08020.06
5.4.450.0030.06319.14
5.4.440.0070.05019.14
5.4.430.0200.07719.39
5.4.420.0070.04719.42
5.4.410.0170.07019.25
5.4.400.0070.08018.79
5.4.390.0070.08318.98
5.4.380.0030.08319.14
5.4.370.0130.07319.04
5.4.360.0100.07719.02
5.4.350.0030.08318.98
5.4.340.0030.07318.98
5.4.320.0130.07319.03
5.4.310.0100.08019.12
5.4.300.0130.08318.98
5.4.290.0030.04019.03
5.4.280.0070.08719.05
5.4.270.0070.07718.96
5.4.260.0030.05719.12
5.4.250.0000.05719.09
5.4.240.0070.07719.02
5.4.230.0030.07718.94
5.4.220.0000.08019.04
5.4.210.0100.07019.16
5.4.200.0100.05019.04
5.4.190.0100.07319.03
5.4.180.0030.08318.79
5.4.170.0130.08019.11
5.4.160.0130.07319.12
5.4.150.0030.09018.78
5.4.140.0100.05316.32
5.4.130.0100.07016.32
5.4.120.0130.07316.45
5.4.110.0130.06316.50
5.4.100.0070.04316.49
5.4.90.0100.03716.31
5.4.80.0070.04316.39
5.4.70.0100.03316.25
5.4.60.0100.06716.18
5.4.50.0100.03716.39
5.4.40.0100.03316.46
5.4.30.0030.04316.17
5.4.20.0000.05016.18
5.4.10.0070.04316.30
5.4.00.0070.07315.81
5.3.290.0070.05314.53
5.3.280.0070.07714.60
5.3.270.0170.06714.60
5.3.260.0130.07014.59
5.3.250.0030.07014.54
5.3.240.0000.08714.60
5.3.230.0070.08714.56
5.3.220.0100.08014.43
5.3.210.0200.06714.56
5.3.200.0030.05314.52
5.3.190.0030.04314.48
5.3.180.0070.04714.54
5.3.170.0030.04314.57
5.3.160.0100.03314.55
5.3.150.0030.04714.55
5.3.140.0030.04014.41
5.3.130.0030.04014.53
5.3.120.0070.04014.36
5.3.110.0070.04014.45
5.3.100.0070.08714.02
5.3.90.0030.08313.87
5.3.80.0030.06014.00
5.3.70.0030.04713.97
5.3.60.0030.04713.96
5.3.50.0070.04313.70
5.3.40.0030.06013.90
5.3.30.0070.03313.84
5.3.20.0030.06013.64
5.3.10.0030.03713.59
5.3.00.0000.04013.61

preferences:
39.03 ms | 401 KiB | 5 Q