3v4l.org

run code in 300+ PHP versions simultaneously
<?php function getSundaysForTheMonth($y, $m) { return new DatePeriod( new DateTime("first sunday of $y-$m"), DateInterval::createFromDateString('next sunday'), new DateTime("last day of $y-$m 23:59:59") ); } // Get current Year and Month $currentYear = date('Y'); $currentMonth = date('m'); // Get month name $beginMonthName = date("F", mktime(0, 0, 0, $currentMonth, 10)); echo "Select which Sunday(s) of the month of ". $beginMonthName . " " . $currentYear . " :\n<BR>"; $i=0; // Display all Sundays for 3 months foreach (getSundaysForTheMonth($currentYear, $currentMonth) as $sunday) { $thisSunday = $sunday->format("m - d - Y"); echo "<input type=\"checkbox\" name=\"date[]\" value=\"$thisSunday\">$thisSunday\n<BR>"; $i++; }

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.4.130.0040.00717.89
8.4.120.0050.00524.21
8.4.110.0120.00722.49
8.4.100.0090.01218.61
8.4.90.0140.00718.97
8.4.80.0130.00719.02
8.4.70.0100.00918.20
8.4.60.0090.00918.70
8.4.50.0050.00420.61
8.4.40.0130.00619.80
8.4.30.0090.00020.39
8.4.20.0000.00817.86
8.4.10.0030.00617.96
8.3.260.0110.00816.57
8.3.250.0120.00718.66
8.3.240.0070.00317.43
8.3.230.0060.01216.77
8.3.220.0040.00318.91
8.3.210.0040.00418.33
8.3.200.0030.00516.60
8.3.190.0110.01017.09
8.3.180.0120.00618.91
8.3.170.0070.01117.18
8.3.160.0070.01118.46
8.3.150.0090.00916.60
8.3.140.0090.00916.65
8.3.130.0040.00418.68
8.3.120.0090.00618.88
8.3.110.0040.00416.75
8.3.100.0040.00418.68
8.3.90.0080.00018.43
8.3.80.0060.00318.43
8.3.70.0070.01416.63
8.3.60.0110.00718.06
8.3.50.0070.00424.49
8.3.40.0070.01019.22
8.3.30.0120.00318.89
8.3.20.0040.00421.89
8.3.10.0000.00820.38
8.3.00.0080.00023.70
8.2.290.0090.01020.57
8.2.280.0100.01118.29
8.2.270.0070.00718.50
8.2.260.0090.00917.12
8.2.250.0030.00616.84
8.2.240.0090.00617.45
8.2.230.0040.00420.94
8.2.220.0060.00924.06
8.2.210.0070.00026.77
8.2.200.0030.00618.79
8.2.190.0000.01516.75
8.2.180.0140.00716.88
8.2.170.0110.00422.96
8.2.160.0070.00722.29
8.2.150.0040.00424.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0030.00526.16
8.2.110.0070.00321.13
8.2.100.0120.00017.84
8.2.90.0030.00517.88
8.2.80.0040.00418.18
8.2.70.0080.00017.75
8.2.60.0000.00817.93
8.2.50.0050.00318.07
8.2.40.0080.00018.35
8.2.30.0000.00818.16
8.2.20.0030.00518.06
8.2.10.0040.00419.36
8.2.00.0000.00719.54
8.1.330.0090.01022.04
8.1.320.0130.00718.23
8.1.310.0110.00716.85
8.1.300.0090.00918.70
8.1.290.0030.00618.88
8.1.280.0040.01125.92
8.1.270.0040.00424.00
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0080.00023.95
8.1.230.0000.01022.61
8.1.220.0040.00417.77
8.1.210.0000.00818.77
8.1.200.0040.00417.60
8.1.190.0000.00917.48
8.1.180.0040.00418.10
8.1.170.0000.00818.84
8.1.160.0000.00718.98
8.1.150.0000.00818.88
8.1.140.0050.00219.06
8.1.130.0030.00320.07
8.1.120.0000.00817.63
8.1.110.0040.00417.66
8.1.100.0000.00917.68
8.1.90.0040.00317.59
8.1.80.0000.00817.68
8.1.70.0000.00717.58
8.1.60.0000.00817.85
8.1.50.0030.00517.72
8.1.40.0000.00817.74
8.1.30.0040.00417.81
8.1.20.0080.00017.85
8.1.10.0000.00917.66
8.1.00.0000.00817.80
8.0.300.0000.00719.79
8.0.290.0040.00417.00
8.0.280.0030.00318.44
8.0.270.0090.00018.25
8.0.260.0000.00720.39
8.0.250.0000.00817.24
8.0.240.0030.00317.12
8.0.230.0040.00417.13
8.0.220.0070.00017.05
8.0.210.0030.00317.04
8.0.200.0000.00917.22
8.0.190.0000.00817.23
8.0.180.0080.00017.20
8.0.170.0060.00317.06
8.0.160.0000.00817.16
8.0.150.0040.00317.09
8.0.140.0040.00417.04
8.0.130.0050.00013.51
8.0.120.0000.00717.15
8.0.110.0040.00417.03
8.0.100.0000.00717.29
8.0.90.0070.00117.08
8.0.80.0060.00717.04
8.0.70.0000.00717.09
8.0.60.0020.00517.15
8.0.50.0000.00717.04
8.0.30.0040.01117.29
8.0.20.0100.00617.33
8.0.10.0050.00317.18
8.0.00.0060.00817.05
7.4.330.0020.00215.55
7.4.320.0060.00016.86
7.4.300.0030.00316.69
7.4.290.0040.00316.74
7.4.280.0030.00516.59
7.4.270.0000.00716.73
7.4.260.0000.00513.33
7.4.250.0030.00316.69
7.4.240.0000.00716.72
7.4.230.0000.00816.51
7.4.220.0060.00116.69
7.4.210.0040.00816.65
7.4.200.0020.00516.62
7.4.190.0040.00416.75
7.4.180.0000.00716.97
7.4.160.0030.00316.61
7.4.150.0030.00316.43
7.4.140.0030.00316.65
7.4.130.0100.00516.59
7.4.120.0100.00616.78
7.4.110.0050.00816.74
7.4.100.0110.00516.84
7.4.90.0090.00516.69
7.4.80.0070.00418.07
7.4.70.0080.00616.75
7.4.60.0040.00816.57
7.4.50.0060.00516.60
7.4.40.0090.00716.60
7.4.30.0120.00316.41
7.4.20.0140.00016.50
7.4.10.0080.00716.52
7.4.00.0060.00816.64
7.3.330.0030.00316.57
7.3.320.0030.00313.41
7.3.310.0040.00416.59
7.3.300.0000.00716.61
7.3.290.0070.00716.55
7.3.280.0000.00716.56
7.3.270.0060.00016.49
7.3.260.0090.00616.66
7.3.250.0000.00816.50
7.3.240.0080.00816.68
7.3.230.0090.00516.60
7.3.220.0030.00316.37
7.3.210.0100.00216.51
7.3.200.0060.00716.67
7.3.190.0050.00816.69
7.3.180.0040.00916.69
7.3.170.0080.00616.62
7.3.160.0060.00616.46
7.3.150.0070.00516.65
7.3.140.0080.00716.56
7.3.130.0050.00916.52
7.3.120.0070.00916.56
7.3.110.0060.00816.43
7.3.100.0070.00716.53
7.3.90.0090.00516.55
7.3.80.0100.00516.36
7.3.70.0070.00916.50
7.3.60.0050.00616.55
7.3.50.0080.00716.59
7.3.40.0050.01316.49
7.3.30.0100.00316.58
7.3.20.0060.00916.56
7.3.10.0040.00916.59
7.3.00.0090.00616.57
7.2.340.0040.00416.83
7.2.330.0090.00516.98
7.2.320.0010.01116.77
7.2.310.0080.00716.83
7.2.300.0080.00516.89
7.2.290.0050.00916.89
7.2.280.0060.00916.79
7.2.270.0070.00916.85
7.2.260.0090.00716.68
7.2.250.0030.01016.73
7.2.240.0090.00816.70
7.2.230.0030.01216.78
7.2.220.0070.00816.83
7.2.210.0090.00616.77
7.2.200.0060.00716.77
7.2.190.0070.00816.79
7.2.180.0070.00816.83
7.2.170.0160.00216.78
7.2.160.0150.00216.72
7.2.150.0100.00716.87
7.2.140.0080.01016.85
7.2.130.0100.00616.96
7.2.120.0100.00516.88
7.2.110.0100.00816.96
7.2.100.0130.00616.84
7.2.90.0080.00816.88
7.2.80.0120.00616.92
7.2.70.0200.00616.96
7.2.60.0150.00316.96
7.2.50.0130.00516.82
7.2.40.0120.00716.86
7.2.30.0080.01017.01
7.2.20.0110.00516.91
7.2.10.0120.00716.83
7.2.00.0080.00716.87

preferences:
28.73 ms | 403 KiB | 5 Q