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.60.0160.00716.63
8.3.50.0090.01422.00
8.3.40.0140.00718.68
8.3.30.0090.00918.96
8.3.20.0000.00920.39
8.3.10.0060.00323.70
8.3.00.0080.00020.82
8.2.180.0130.01016.75
8.2.170.0100.01022.96
8.2.160.0200.00322.25
8.2.150.0090.00324.18
8.2.140.0090.01224.66
8.2.130.0030.00526.16
8.2.120.0070.00419.79
8.2.110.0100.00022.26
8.2.100.0030.01018.03
8.2.90.0030.00619.22
8.2.80.0040.00418.05
8.2.70.0040.00717.63
8.2.60.0030.00617.93
8.2.50.0090.00318.07
8.2.40.0060.00318.34
8.2.30.0080.00018.10
8.2.20.0030.00617.70
8.2.10.0060.00319.54
8.2.00.0040.00417.75
8.1.280.0110.00725.92
8.1.270.0060.00323.78
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0000.01023.98
8.1.230.0040.00818.97
8.1.220.0090.00017.79
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0060.00317.51
8.1.180.0060.00318.10
8.1.170.0030.00618.64
8.1.160.0070.00421.93
8.1.150.0030.00618.68
8.1.140.0100.00017.59
8.1.130.0060.00317.59
8.1.120.0040.00417.52
8.1.110.0030.00617.64
8.1.100.0060.00317.62
8.1.90.0030.00517.60
8.1.80.0000.00917.55
8.1.70.0060.00317.59
8.1.60.0100.00017.62
8.1.50.0040.00417.50
8.1.40.0000.00917.60
8.1.30.0030.00617.71
8.1.20.0000.00917.57
8.1.10.0000.00917.51
8.1.00.0000.01117.44
8.0.300.0060.00318.77
8.0.290.0030.00617.27
8.0.280.0030.00618.39
8.0.270.0040.00417.25
8.0.260.0080.00016.96
8.0.250.0040.00417.00
8.0.240.0070.00417.08
8.0.230.0060.00317.09
8.0.220.0060.00317.08
8.0.210.0030.00616.96
8.0.200.0000.00817.07
8.0.190.0080.00317.02
8.0.180.0060.00317.04
8.0.170.0030.00617.05
8.0.160.0030.00717.03
8.0.150.0040.00416.94
8.0.140.0000.00916.88
8.0.130.0000.00713.41
8.0.120.0030.00617.02
8.0.110.0030.00616.99
8.0.100.0050.00516.98
8.0.90.0030.00616.83
8.0.80.0100.01017.03
8.0.70.0000.00916.97
8.0.60.0030.00616.90
8.0.50.0030.00616.86
8.0.30.0130.00917.15
8.0.20.0110.01717.40
8.0.10.0030.00617.03
8.0.00.0100.01416.81
7.4.330.0000.00615.08
7.4.320.0040.00416.48
7.4.300.0060.00316.59
7.4.290.0060.00716.59
7.4.280.0030.00516.59
7.4.270.0060.00316.69
7.4.260.0000.00816.52
7.4.250.0000.00916.68
7.4.240.0030.00616.56
7.4.230.0000.00916.65
7.4.220.0090.02116.79
7.4.210.0090.00916.74
7.4.200.0060.00316.72
7.4.190.0040.00416.53
7.4.160.0130.01316.57
7.4.150.0060.01617.40
7.4.140.0150.01017.86
7.4.130.0150.01216.69
7.4.120.0090.01316.65
7.4.110.0120.00716.38
7.4.100.0100.01416.55
7.4.90.0070.01416.55
7.4.80.0060.02316.71
7.4.70.0090.01216.63
7.4.60.0070.01416.64
7.4.50.0030.00316.12
7.4.40.0090.00922.77
7.4.30.0200.00316.80
7.4.00.0090.00915.31
7.3.330.0030.00313.20
7.3.320.0000.00613.22
7.3.310.0030.00616.29
7.3.300.0030.00516.24
7.3.290.0000.02016.44
7.3.280.0080.01416.36
7.3.270.0150.00617.40
7.3.260.0070.01316.56
7.3.250.0140.01016.55
7.3.240.0100.01016.50
7.3.230.0160.00616.64
7.3.210.0130.01216.65
7.3.200.0090.01619.39
7.3.190.0120.01616.40
7.3.180.0090.00916.29
7.3.170.0070.01316.58
7.3.160.0120.00816.63
7.3.120.0130.00714.78
7.3.10.0030.01416.87
7.3.00.0070.00716.88
7.2.330.0040.01916.92
7.2.320.0030.01716.54
7.2.310.0170.01116.79
7.2.300.0120.00916.98
7.2.290.0090.01816.70
7.2.130.0070.00716.77
7.2.120.0130.00717.11
7.2.110.0030.01316.87
7.2.100.0100.01016.95
7.2.90.0000.01617.15
7.2.80.0130.00317.08
7.2.70.0030.01217.14
7.2.60.0090.00616.91
7.2.50.0060.01017.03
7.2.40.0030.01516.87
7.2.30.0080.01217.11
7.2.20.0070.00717.10
7.2.10.0070.00717.15
7.2.00.0030.01318.23
7.1.250.0000.01615.73
7.1.240.0070.01015.93
7.1.230.0030.01416.01
7.1.220.0030.01416.00
7.1.210.0060.00615.59
7.1.200.0040.01116.04
7.1.190.0070.01015.52
7.1.180.0030.01315.90
7.1.170.0030.01315.75
7.1.160.0100.00615.83
7.1.150.0110.00715.59
7.1.140.0100.00315.62
7.1.130.0030.01016.10
7.1.120.0030.00616.02
7.1.110.0090.00915.81
7.1.100.0030.01116.95
7.1.90.0060.01515.55
7.1.80.0030.01415.78
7.1.70.0050.00916.49
7.1.60.0080.01217.61
7.1.50.0050.01616.49
7.1.40.0030.00915.75
7.1.30.0090.00915.63
7.1.20.0070.01115.94
7.1.10.0070.00715.88
7.1.00.0030.05019.12
7.0.330.0090.00915.48
7.0.320.0090.00915.47
7.0.310.0100.00315.62
7.0.300.0070.00415.48
7.0.290.0070.01015.16
7.0.280.0060.00815.46
7.0.270.0100.00315.12
7.0.260.0040.00715.58
7.0.250.0000.01215.46
7.0.240.0100.00615.67
7.0.230.0030.01315.52
7.0.220.0040.00715.47
7.0.210.0030.00815.43
7.0.200.0020.01016.25
7.0.190.0040.01515.62
7.0.180.0030.01615.72
7.0.170.0000.01215.64
7.0.160.0090.00615.30
7.0.150.0030.01315.44
7.0.140.0050.03918.80
7.0.130.0030.01515.61
7.0.120.0090.00615.70
7.0.110.0000.01215.49
7.0.100.0060.01015.48
7.0.90.0170.04317.70
7.0.80.0170.03817.62
7.0.70.0070.03617.66
7.0.60.0100.04317.73
7.0.50.0030.03217.95
7.0.40.0030.03016.73
7.0.30.0070.04816.80
7.0.20.0060.03316.82
7.0.10.0100.03816.79
7.0.00.0070.04516.84
5.6.380.0080.00814.38
5.6.370.0070.01314.30
5.6.360.0100.01314.54
5.6.350.0100.01614.48
5.6.340.0100.01014.59
5.6.330.0000.01414.38
5.6.320.0070.01014.34
5.6.310.0040.00814.45
5.6.300.0030.01414.31
5.6.290.0100.00714.68
5.6.280.0100.00714.79
5.6.270.0030.01614.45
5.6.260.0120.00614.60
5.6.250.0070.02014.37
5.6.240.0050.04217.58
5.6.230.0030.04717.53
5.6.220.0050.04217.68
5.6.210.0030.03517.62
5.6.200.0020.03217.68
5.6.190.0050.03717.76
5.6.180.0070.02917.57
5.6.170.0020.03217.63
5.6.160.0070.04717.62
5.6.150.0020.05317.83
5.6.140.0050.03317.77
5.6.130.0020.05217.66
5.6.120.0080.04117.71
5.6.110.0030.05717.78
5.6.100.0110.02717.73
5.6.90.0070.02617.72
5.6.80.0080.04617.39
5.6.70.0130.04317.36
5.6.60.0050.04817.41
5.6.50.0040.02717.52
5.6.40.0140.04017.48
5.6.30.0030.04617.47
5.6.20.0080.04117.30
5.6.10.0000.04317.54
5.6.00.0080.02517.41
5.5.380.0040.03115.97
5.5.370.0030.02915.88
5.5.360.0060.05315.83
5.5.350.0080.04515.70
5.5.340.0050.03715.99
5.5.330.0070.04915.90
5.5.320.0080.03615.90
5.5.310.0070.04716.00
5.5.300.0050.04315.94
5.5.290.0020.04816.05
5.5.280.0070.04615.87
5.5.270.0060.03815.91
5.5.260.0070.02616.08
5.5.250.0100.03915.91
5.5.240.0030.04215.71
5.5.230.0000.05615.73
5.5.220.0050.04215.45
5.5.210.0050.04215.55
5.5.200.0070.04715.57
5.5.190.0050.03815.58
5.5.180.0020.03815.67
5.5.170.0060.00910.86
5.5.160.0020.03315.75
5.5.150.0110.04215.45
5.5.140.0100.03315.63
5.5.130.0030.04615.57
5.5.120.0030.04215.69
5.5.110.0070.04515.66
5.5.100.0100.03815.70
5.5.90.0050.04915.65
5.5.80.0170.03715.71
5.5.70.0100.04315.61
5.5.60.0050.03215.57
5.5.50.0100.04315.44
5.5.40.0060.04415.73
5.5.30.0050.04915.62
5.5.20.0080.02815.38
5.5.10.0080.03615.66
5.5.00.0080.04815.60
5.4.450.0120.03915.07
5.4.440.0050.04115.27
5.4.430.0050.04515.00
5.4.420.0090.04015.22
5.4.410.0050.03215.19
5.4.400.0100.03715.05
5.4.390.0070.04214.99
5.4.380.0020.04214.81
5.4.370.0030.04014.91
5.4.360.0020.02715.04
5.4.350.0050.04315.10
5.4.340.0080.03715.03
5.4.330.0000.01411.06
5.4.320.0050.03215.04
5.4.310.0030.02315.04
5.4.300.0050.04215.00
5.4.290.0120.02515.08
5.4.280.0120.04215.17
5.4.270.0030.04715.07
5.4.260.0080.04014.94
5.4.250.0090.02914.97
5.4.240.0070.04515.19
5.4.230.0060.04514.88
5.4.220.0090.03514.80
5.4.210.0050.02815.14
5.4.200.0030.05014.98
5.4.190.0020.04315.02
5.4.180.0070.04215.06
5.4.170.0130.04314.85
5.4.160.0080.04015.08
5.4.150.0030.04814.99
5.4.140.0120.04013.59
5.4.130.0080.03013.76
5.4.120.0020.03713.75
5.4.110.0050.04713.70
5.4.100.0040.04413.73
5.4.90.0080.04713.79
5.4.80.0080.04313.68
5.4.70.0000.04513.80
5.4.60.0070.02813.60
5.4.50.0080.03813.69
5.4.40.0070.04213.53
5.4.30.0050.03513.71
5.4.20.0060.04613.78
5.4.10.0060.02813.76
5.4.00.0030.04513.23
5.3.290.0040.03612.67
5.3.280.0070.05112.55
5.3.270.0020.05012.62
5.3.260.0070.03012.62
5.3.250.0080.04412.57
5.3.240.0050.03512.57
5.3.230.0080.04412.55
5.3.220.0040.05112.50
5.3.210.0020.04712.39
5.3.200.0070.04412.37
5.3.190.0020.03412.49
5.3.180.0050.04512.56
5.3.170.0050.03512.46
5.3.160.0070.03912.59
5.3.150.0010.04712.49
5.3.140.0020.03412.54
5.3.130.0070.04212.53
5.3.120.0170.03012.43
5.3.110.0080.04012.54
5.3.100.0070.03112.24
5.3.90.0030.03812.09
5.3.80.0060.03412.14
5.3.70.0100.02512.03
5.3.60.0130.04312.24
5.3.50.0070.04212.19
5.3.40.0060.04612.16
5.3.30.0050.04812.14
5.3.20.0060.04611.89
5.3.10.0030.04411.92
5.3.00.0100.04611.93
5.2.170.0030.04410.49
5.2.160.0050.03910.45
5.2.150.0090.03410.48
5.2.140.0000.03010.55
5.2.130.0030.03810.51
5.2.120.0050.02710.41
5.2.110.0050.02910.52
5.2.100.0040.04110.41
5.2.90.0050.03510.39
5.2.80.0030.02710.49
5.2.70.0100.03710.40
5.2.60.0060.03310.40
5.2.50.0020.03710.48
5.2.40.0060.02710.46
5.2.30.0050.02510.41
5.2.20.0050.02310.46
5.2.10.0020.03310.44
5.2.00.0050.03510.33
5.1.60.0060.03110.18
5.1.50.0080.01310.18
5.1.40.0020.03110.18
5.1.30.0080.02010.18
5.1.20.0030.03810.18
5.1.10.0030.03210.18
5.1.00.0000.03310.18
5.0.50.0150.02710.18
5.0.40.0130.02610.18
5.0.30.0100.03810.18
5.0.20.0160.02510.18
5.0.10.0070.03010.18
5.0.00.0110.03510.18
4.4.90.0090.02710.18
4.4.80.0140.02210.18
4.4.70.0060.01410.18
4.4.60.0100.01310.18
4.4.50.0160.02210.18
4.4.40.0100.03010.18
4.4.30.0130.02210.18
4.4.20.0020.03510.18
4.4.10.0110.02010.18
4.4.00.0070.02910.18
4.3.110.0130.01810.18
4.3.100.0110.02310.18
4.3.90.0090.01310.18
4.3.80.0110.02210.18
4.3.70.0100.02010.18
4.3.60.0100.02210.18
4.3.50.0080.01710.18
4.3.40.0120.02810.18
4.3.30.0080.02510.18
4.3.20.0070.02510.18
4.3.10.0140.01210.18
4.3.00.0090.02410.18

preferences:
39.13 ms | 401 KiB | 5 Q