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 ($current_year = 1900; $current_year <= 1999; $current_year++) { //Make the following actions for all months from January to December for ($current_month = 1; $current_month <= 12; $current_month++) { // Get Unix Timestamp of the current month and year on the first day of the month $current_date = mktime(0, 0, 0, $current_month, 01, $current_year); $get_day_of_week = date("D", $current_date); if ($get_day_of_week == "Sun") { echo "01".$current_month.$current_year."was a Sunday!"."\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.40.0100.00618.82
8.3.30.0130.00319.25
8.3.20.0080.00020.15
8.3.10.0160.00023.43
8.3.00.0030.00620.58
8.2.170.0070.01018.92
8.2.160.0180.00622.96
8.2.150.0080.00024.18
8.2.140.0060.00324.66
8.2.130.0080.00026.16
8.2.120.0080.00022.11
8.2.110.0080.00322.26
8.2.100.0100.00317.84
8.2.90.0060.00319.22
8.2.80.0030.00617.97
8.2.70.0000.00917.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0050.00518.34
8.2.30.0040.00418.21
8.2.20.0030.00617.80
8.2.10.0030.00717.88
8.2.00.0000.00917.95
8.1.270.0050.00523.84
8.1.260.0080.00026.35
8.1.250.0060.00328.09
8.1.240.0100.00020.99
8.1.230.0030.01017.42
8.1.220.0030.00617.74
8.1.210.0000.00918.77
8.1.200.0070.00317.38
8.1.190.0060.00317.55
8.1.180.0040.00418.10
8.1.170.0030.00618.61
8.1.160.0060.00622.03
8.1.150.0050.00518.79
8.1.140.0000.01017.59
8.1.130.0000.00817.91
8.1.120.0000.00817.54
8.1.110.0040.00417.67
8.1.100.0060.00317.50
8.1.90.0030.00517.61
8.1.80.0030.00517.60
8.1.70.0030.00617.57
8.1.60.0030.01017.66
8.1.50.0000.00917.58
8.1.40.0000.00917.59
8.1.30.0040.00417.52
8.1.20.0060.00317.77
8.1.10.0040.00417.59
8.1.00.0030.00617.48
8.0.300.0030.00718.77
8.0.290.0030.00716.88
8.0.280.0000.00818.48
8.0.270.0000.00817.29
8.0.260.0040.00416.84
8.0.250.0090.00017.00
8.0.240.0000.00817.06
8.0.230.0090.00017.10
8.0.220.0060.00317.01
8.0.210.0030.00617.10
8.0.200.0040.00417.10
8.0.190.0030.00617.13
8.0.180.0000.00916.94
8.0.170.0030.00617.06
8.0.160.0040.00417.02
8.0.150.0060.00317.01
8.0.140.0000.00917.00
8.0.130.0040.00413.43
8.0.120.0100.00016.92
8.0.110.0060.00317.04
8.0.100.0030.00717.02
8.0.90.0000.00917.14
8.0.80.0090.00917.05
8.0.70.0060.00317.09
8.0.60.0000.00917.04
8.0.50.0000.00916.86
8.0.30.0140.01017.22
8.0.20.0150.00817.40
8.0.10.0000.00917.02
8.0.00.0150.00517.02
7.4.330.0000.00615.20
7.4.320.0040.00416.64
7.4.300.0000.00816.58
7.4.290.0030.00616.70
7.4.280.0040.00416.67
7.4.270.0040.00416.63
7.4.260.0000.00816.50
7.4.250.0000.01016.68
7.4.240.0020.00716.59
7.4.230.0060.00316.73
7.4.220.0180.01216.58
7.4.210.0050.01216.65
7.4.200.0050.00316.52
7.4.190.0000.00816.62
7.4.160.0060.01316.76
7.4.150.0120.01217.40
7.4.140.0120.01417.86
7.4.130.0100.01416.65
7.4.120.0140.00816.50
7.4.110.0100.01016.64
7.4.100.0040.01716.53
7.4.90.0170.01016.54
7.4.80.0100.01016.49
7.4.70.0040.02116.66
7.4.60.0180.00316.52
7.4.50.0030.00716.44
7.4.40.0100.00722.77
7.4.30.0120.00916.77
7.4.00.0090.00614.70
7.3.330.0000.00613.09
7.3.320.0040.00413.34
7.3.310.0000.00816.34
7.3.300.0060.00316.36
7.3.290.0070.01716.28
7.3.280.0110.01416.37
7.3.270.0150.00717.40
7.3.260.0080.01416.76
7.3.250.0120.01716.61
7.3.240.0140.00716.80
7.3.230.0180.00916.47
7.3.210.0120.00916.63
7.3.200.0140.00719.39
7.3.190.0120.01816.34
7.3.180.0060.01216.56
7.3.170.0060.01816.60
7.3.160.0070.01316.74
7.3.120.0070.01014.96
7.3.10.0080.00816.49
7.3.00.0060.01016.90
7.2.330.0100.02016.60
7.2.320.0070.01316.66
7.2.310.0120.01416.68
7.2.300.0130.01016.54
7.2.290.0170.00316.73
7.2.130.0030.01016.82
7.2.120.0030.01517.07
7.2.110.0100.00716.88
7.2.100.0000.01317.04
7.2.90.0000.01817.21
7.2.80.0030.01617.18
7.2.70.0030.01316.85
7.2.60.0100.00717.19
7.2.50.0030.01417.05
7.2.40.0070.01017.02
7.2.30.0060.01017.07
7.2.20.0070.00716.86
7.2.10.0070.01017.18
7.2.00.0100.00716.99
7.1.250.0070.00715.91
7.1.200.0040.00915.82
7.1.70.0030.00717.34
7.1.60.0000.02519.29
7.1.50.0140.01417.23
7.1.00.0030.07722.54
7.0.200.0030.00617.01
7.0.140.0070.07322.09
7.0.100.0030.09319.92
7.0.90.0100.09019.85
7.0.80.0030.08319.95
7.0.70.0070.08319.93
7.0.60.0100.08019.94
7.0.50.0170.05320.19
7.0.40.0000.09720.13
7.0.30.0070.08020.12
7.0.20.0100.07720.00
7.0.10.0200.07020.02
7.0.00.0130.08020.18
5.6.280.0070.07720.78
5.6.250.0230.06720.62
5.6.240.0030.09320.51
5.6.230.0070.08020.68
5.6.220.0100.08320.64
5.6.210.0100.06020.52
5.6.200.0200.07020.95
5.6.190.0130.07721.00
5.6.180.0070.08720.96
5.6.170.0100.08721.06
5.6.160.0100.08021.07
5.6.150.0170.07721.08
5.6.140.0070.04321.10
5.6.130.0130.04721.09
5.6.120.0030.09020.99
5.6.110.0070.05321.10
5.6.100.0100.08721.06
5.6.90.0100.09020.99
5.6.80.0070.08020.43
5.6.70.0100.06020.39
5.6.60.0000.06720.44
5.6.50.0030.04320.46
5.6.40.0070.04020.52
5.6.30.0030.04320.42
5.6.20.0070.04020.52
5.6.10.0100.03720.36
5.6.00.0070.03720.44
5.5.380.0100.04720.35
5.5.370.0070.07020.37
5.5.360.0070.05320.38
5.5.350.0130.06720.43
5.5.340.0100.08720.83
5.5.330.0070.08320.75
5.5.320.0100.08720.73
5.5.310.0100.07320.91
5.5.300.0100.08020.89
5.5.290.0130.08320.80
5.5.280.0100.05020.77
5.5.270.0130.08020.90
5.5.260.0030.06320.78
5.5.250.0100.06720.69
5.5.240.0130.08020.14
5.5.230.0100.08020.28
5.5.220.0030.04320.20
5.5.210.0070.04020.01
5.5.200.0070.04020.19
5.5.190.0170.03020.25
5.5.180.0100.04720.08
5.5.160.0100.03020.27
5.5.150.0100.03720.18
5.5.140.0030.04020.28
5.5.130.0100.07720.27
5.5.120.0070.09020.22
5.5.110.0030.04320.11
5.5.100.0070.03720.02
5.5.90.0130.07720.07
5.5.80.0030.04019.94
5.5.70.0070.04020.16
5.5.60.0070.03020.11
5.5.50.0000.04720.05
5.5.40.0100.03020.13
5.5.30.0170.07320.04
5.5.20.0030.05720.12
5.5.10.0070.04720.00
5.5.00.0030.04019.96
5.4.450.0030.07019.22
5.4.440.0100.07019.55
5.4.430.0070.08319.42
5.4.420.0100.06719.46
5.4.410.0030.08719.29
5.4.400.0000.09018.90
5.4.390.0070.08319.09
5.4.380.0130.03718.96
5.4.370.0100.03319.11
5.4.360.0000.05019.13
5.4.350.0000.04319.07
5.4.340.0030.04319.14
5.4.320.0000.04319.07
5.4.310.0030.04019.12
5.4.300.0030.04019.02
5.4.290.0100.07319.11
5.4.280.0000.08019.12
5.4.270.0130.06719.22
5.4.260.0030.03318.96
5.4.250.0000.05019.02
5.4.240.0070.03719.06
5.4.230.0100.07018.89
5.4.220.0030.05719.02
5.4.210.0000.06019.12
5.4.200.0030.05019.14
5.4.190.0030.04019.11
5.4.180.0100.03018.95
5.4.170.0030.04019.04
5.4.160.0000.04318.79
5.4.150.0000.04319.00
5.4.140.0030.04016.33
5.4.130.0000.04016.41
5.4.120.0030.05316.38
5.4.110.0100.03716.38
5.4.100.0000.04316.46
5.4.90.0000.04316.29
5.4.80.0070.03716.43
5.4.70.0100.03316.47
5.4.60.0070.03316.35
5.4.50.0000.04716.39
5.4.40.0070.03716.28
5.4.30.0030.04016.30
5.4.20.0000.04016.28
5.4.10.0030.06316.27
5.4.00.0030.03715.82
5.3.290.0130.05314.52
5.3.280.0000.04714.45
5.3.270.0030.03714.55
5.3.260.0100.03014.46
5.3.250.0000.04314.56
5.3.240.0070.04014.59
5.3.230.0030.03714.53
5.3.220.0100.03314.55
5.3.210.0130.03314.53
5.3.200.0070.03714.52
5.3.190.0000.04314.56
5.3.180.0030.05314.52
5.3.170.0030.04014.50
5.3.160.0000.04314.54
5.3.150.0030.07714.51
5.3.140.0070.04314.49
5.3.130.0000.04314.46
5.3.120.0070.04714.49
5.3.110.0030.04314.53
5.3.100.0030.04313.94
5.3.90.0070.04013.93
5.3.80.0070.05313.93
5.3.70.0070.05313.94
5.3.60.0070.08014.01
5.3.50.0000.07013.94
5.3.40.0100.05713.94
5.3.30.0070.05013.91
5.3.20.0070.05713.55
5.3.10.0070.07313.65
5.3.00.0170.06313.59
5.2.170.0070.06011.42
5.2.160.0070.06311.42
5.2.150.0070.05311.42
5.2.140.0070.04011.42
5.2.130.0130.05711.42
5.2.120.0030.06711.42
5.2.110.0070.04011.42
5.2.100.0070.04711.42
5.2.90.0000.07011.42
5.2.80.0030.07311.42
5.2.70.0000.06311.42
5.2.60.0100.06011.42
5.2.50.0070.07311.42
5.2.40.0030.06711.42
5.2.30.0100.04311.42
5.2.20.0030.06311.42
5.2.10.0100.05311.42
5.2.00.0100.04311.42
5.1.60.0030.05011.42
5.1.50.0000.06011.42
5.1.40.0000.06311.42
5.1.30.0030.06711.42
5.1.20.0100.05711.42
5.1.10.0030.06311.42
5.1.00.0100.05311.42
5.0.50.0130.05011.42
5.0.40.0070.05311.42
5.0.30.0070.04011.42
5.0.20.0130.05311.42
5.0.10.0230.03311.42
5.0.00.0170.06311.42
4.4.90.0170.03311.42
4.4.80.0170.03711.42
4.4.70.0100.01711.42
4.4.60.0070.04711.42
4.4.50.0070.02311.42
4.4.40.0130.05011.42
4.4.30.0130.04311.42
4.4.20.0200.03011.42
4.4.10.0070.04711.42
4.4.00.0100.06011.42
4.3.110.0070.04011.42
4.3.100.0130.04011.42
4.3.90.0100.04311.42
4.3.80.0170.05011.42
4.3.70.0070.04311.42
4.3.60.0100.04011.42
4.3.50.0170.03011.42
4.3.40.0100.05711.42
4.3.30.0100.04311.42
4.3.20.0070.03311.42
4.3.10.0100.04011.42
4.3.00.0070.02711.42

preferences:
40.58 ms | 400 KiB | 5 Q