3v4l.org

run code in 300+ PHP versions simultaneously
<?php$day = 'saturday';$step = 2;$unit = 'W';$start = new DateTime();$end = clone $start;$start->modify($day); // Move to first occurence$end->add(new DateInterval('P1Y')); // Move to 1 year from start$interval = new DateInterval("P{$step}{$unit}");$period = new DatePeriod($start, $interval, $end);foreach ($period as $date) { echo $date->format('D, d M Y'), PHP_EOL;}

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.0070.01418.18
8.3.50.0130.00621.05
8.3.40.0120.00318.72
8.3.30.0080.00518.92
8.3.20.0080.00020.26
8.3.10.0040.00423.69
8.3.00.0050.00319.38
8.2.180.0100.01016.38
8.2.170.0100.00722.96
8.2.160.0100.00320.39
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0070.00026.16
8.2.120.0040.00422.09
8.2.110.0070.00322.21
8.2.100.0080.00417.63
8.2.90.0000.00719.23
8.2.80.0000.00817.97
8.2.70.0040.00417.38
8.2.60.0000.01017.68
8.2.50.0040.00419.07
8.2.40.0030.00519.94
8.2.30.0000.00717.83
8.2.20.0040.00417.45
8.2.10.0040.00417.91
8.2.00.0000.00717.54
8.1.280.0070.00725.92
8.1.270.0040.00423.95
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00623.95
8.1.230.0040.00819.16
8.1.220.0050.00317.74
8.1.210.0060.00318.77
8.1.200.0060.00317.10
8.1.190.0050.00317.13
8.1.180.0040.00418.10
8.1.170.0040.00418.53
8.1.160.0050.00221.95
8.1.150.0040.00418.81
8.1.140.0050.00217.31
8.1.130.0000.00719.54
8.1.120.0030.00317.38
8.1.110.0040.00417.32
8.1.100.0030.00517.22
8.1.90.0000.00717.25
8.1.80.0030.00317.21
8.1.70.0070.00017.20
8.1.60.0070.00317.33
8.1.50.0000.00817.29
8.1.40.0040.00417.38
8.1.30.0040.00417.49
8.1.20.0040.00417.55
8.1.10.0070.00017.34
8.1.00.0000.00717.34
8.0.300.0050.00218.77
8.0.290.0030.00516.58
8.0.280.0030.00318.36
8.0.270.0000.00717.20
8.0.260.0000.00617.19
8.0.250.0030.00616.78
8.0.240.0030.00516.82
8.0.230.0030.00316.68
8.0.220.0030.00316.65
8.0.210.0030.00316.79
8.0.200.0030.00316.83
8.0.190.0030.00616.75
8.0.180.0050.00216.78
8.0.170.0040.00416.76
8.0.160.0000.00816.74
8.0.150.0030.00316.73
8.0.140.0040.00416.60
8.0.130.0030.00313.44
8.0.120.0000.00716.68
8.0.110.0040.00416.76
8.0.100.0040.00416.75
8.0.90.0040.00416.82
8.0.80.0090.00816.69
8.0.70.0000.00716.70
8.0.60.0000.00716.59
8.0.50.0070.00016.72
8.0.30.0090.01217.16
8.0.20.0100.00817.40
8.0.10.0040.00416.77
8.0.00.0070.01116.63
7.4.330.0020.00215.02
7.4.320.0040.00416.44
7.4.300.0000.00816.36
7.4.290.0030.00616.44
7.4.280.0000.00716.37
7.4.270.0060.00016.51
7.4.260.0030.00516.42
7.4.250.0070.00016.45
7.4.240.0000.00716.33
7.4.230.0000.00716.29
7.4.220.0090.00916.49
7.4.210.0000.01316.35
7.4.200.0070.00016.19
7.4.160.0160.00616.33
7.4.150.0100.01317.40
7.4.140.0100.00817.86
7.4.130.0100.00816.33
7.4.120.0100.00716.30
7.4.110.0120.00616.26
7.4.100.0170.00016.28
7.4.90.0130.00316.30
7.4.80.0110.00619.39
7.4.70.0070.01016.27
7.4.60.0090.00716.32
7.4.50.0000.00616.32
7.4.40.0150.00616.39
7.4.30.0070.01616.18
7.3.330.0020.00213.14
7.3.320.0030.00313.15
7.3.310.0030.00316.22
7.3.300.0030.00316.06
7.3.290.0080.00716.11
7.3.280.0090.00616.14
7.3.270.0120.00617.40
7.3.260.0150.00916.22
7.3.250.0050.01216.17
7.3.240.0110.00616.19
7.3.230.0070.01016.49
7.3.210.0100.00716.36
7.3.200.0150.00619.39
7.3.190.0070.01016.24
7.3.180.0120.00316.16
7.3.170.0100.01016.27
7.3.160.0070.00716.17
7.2.330.0110.00716.39
7.2.320.0140.00416.51
7.2.310.0070.01516.41
7.2.300.0040.01216.51
7.2.290.0120.01116.54
5.4.340.0230.03719.32
5.4.320.0270.03719.08
5.4.310.0330.07719.08
5.4.300.0270.04719.22
5.4.290.0400.06018.87
5.4.280.0300.04719.09
5.4.270.0330.05318.99
5.4.260.0200.04719.22
5.4.250.0300.06718.84
5.4.240.0330.06719.21
5.4.230.0330.03719.14
5.4.220.0200.05319.05
5.4.210.0330.05719.14
5.4.200.0200.05319.08
5.4.190.0170.04319.07
5.4.180.0300.04319.14
5.4.170.0270.04719.19
5.4.160.0430.05319.06
5.4.150.0300.05019.13
5.4.140.0230.04016.52
5.4.130.0370.06016.32
5.4.120.0230.06716.51
5.4.110.0330.02716.55
5.4.100.0270.07316.56
5.4.90.0300.06016.54
5.4.80.0300.04016.18
5.4.70.0430.05316.57
5.4.60.0270.04316.43
5.4.50.0270.04316.48
5.4.40.0230.03716.43
5.4.30.0270.07016.37
5.4.20.0270.04716.52
5.4.10.0300.06716.51
5.4.00.0330.06715.94

preferences:
41.29 ms | 401 KiB | 5 Q