3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new \DateTime('2014-08-15'); $end = new \DateTime('2014-08-09'); $diff = $end->diff($start); $interval = \DateInterval::createFromDateString('-1 day'); $period = new \DatePeriod($start, $interval, $diff->days); foreach ($period as $date) { echo $date->format('Y-m-d') . 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.130.0100.01318.56
8.3.120.0040.00819.11
8.3.110.0080.01120.94
8.3.100.0040.01216.66
8.3.90.0030.00516.62
8.3.80.0060.00318.43
8.3.70.0120.00318.45
8.3.60.0110.00418.55
8.3.50.0110.01017.58
8.3.40.0040.01218.90
8.3.30.0070.00718.98
8.3.20.0050.00319.28
8.3.10.0080.00023.61
8.3.00.0040.00423.65
8.2.250.0080.00816.86
8.2.240.0120.00317.51
8.2.230.0050.00322.58
8.2.220.0000.00837.54
8.2.210.0040.00426.77
8.2.200.0040.00416.75
8.2.190.0080.00616.63
8.2.180.0150.00916.88
8.2.170.0070.00722.96
8.2.160.0000.01420.35
8.2.150.0050.00324.18
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0050.00319.60
8.2.110.0030.00719.43
8.2.100.0040.00718.03
8.2.90.0060.00317.88
8.2.80.0080.00017.97
8.2.70.0000.00917.88
8.2.60.0060.00318.15
8.2.50.0030.00618.07
8.2.40.0080.00018.35
8.2.30.0090.00018.25
8.2.20.0040.00418.20
8.2.10.0040.00419.51
8.2.00.0000.00719.69
8.1.300.0030.00617.61
8.1.290.0060.00318.88
8.1.280.0100.01025.92
8.1.270.0080.00023.99
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0190.00322.16
8.1.230.0090.00322.18
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0060.00317.60
8.1.190.0040.00417.60
8.1.180.0040.00418.10
8.1.170.0060.00318.72
8.1.160.0040.00419.00
8.1.150.0030.00519.03
8.1.140.0050.00319.73
8.1.130.0000.00819.03
8.1.120.0070.00517.67
8.1.110.0060.00617.70
8.1.100.0070.00517.57
8.1.90.0050.00617.56
8.1.80.0080.00417.71
8.1.70.0060.00517.71
8.1.60.0090.00417.69
8.1.50.0000.01317.66
8.1.40.0110.00217.65
8.1.30.0040.00917.79
8.1.20.0100.00317.76
8.1.10.0080.00417.70
8.1.00.0080.00517.73
8.0.300.0070.00018.77
8.0.290.0000.00717.00
8.0.280.0040.00418.59
8.0.270.0030.00317.33
8.0.260.0090.00017.40
8.0.250.0090.00217.17
8.0.240.0040.00617.08
8.0.230.0080.00417.12
8.0.220.0070.00317.09
8.0.210.0070.00417.14
8.0.200.0000.01117.17
8.0.190.0090.00317.19
8.0.180.0090.00217.13
8.0.170.0080.00317.05
8.0.160.0050.00617.13
8.0.150.0070.00417.11
8.0.140.0080.00317.06
8.0.130.0070.00515.28
8.0.120.0080.00415.84
8.0.110.0070.00615.81
8.0.100.0100.00215.94
8.0.90.0080.00415.83
8.0.80.0110.00516.18
8.0.70.0080.00515.85
8.0.60.0090.00215.90
8.0.50.0080.00415.91
8.0.30.0140.00716.69
8.0.20.0090.00716.38
8.0.10.0050.00616.06
8.0.00.0070.01016.29
7.4.330.0060.00615.06
7.4.320.0070.00516.70
7.4.300.0060.00316.66
7.4.290.0090.00016.74
7.4.280.0070.00316.58
7.4.270.0050.00516.77
7.4.260.0040.00516.82
7.4.250.0050.00815.59
7.4.240.0070.00515.61
7.4.230.0070.00515.38
7.4.220.0050.00715.56
7.4.210.0090.00515.98
7.4.200.0060.00615.54
7.4.190.0070.00714.96
7.4.180.0100.00415.03
7.4.160.0110.00416.03
7.4.150.0110.00314.97
7.4.140.0100.00717.01
7.4.130.0120.00315.37
7.4.120.0080.00916.11
7.4.110.0090.00615.50
7.4.100.0100.00515.50
7.4.90.0110.00515.41
7.4.80.0110.00516.47
7.4.70.0070.00915.48
7.4.60.0090.00615.47
7.4.50.0080.00715.43
7.4.40.0080.00715.45
7.4.30.0060.00614.89
7.4.20.0100.00214.91
7.4.10.0100.00414.84
7.4.00.0090.00514.90
7.3.330.0090.00114.98
7.3.320.0040.00614.93
7.3.310.0020.01015.43
7.3.300.0080.00415.40
7.3.290.0060.00515.49
7.3.280.0080.00815.54
7.3.270.0110.00314.85
7.3.260.0090.00716.11
7.3.250.0120.00315.01
7.3.240.0120.00716.14
7.3.230.0130.00315.49
7.3.220.0090.00514.88
7.3.210.0130.00315.55
7.3.200.0110.00515.42
7.3.190.0110.00315.48
7.3.180.0100.00615.45
7.3.170.0100.00515.47
7.3.160.0110.00715.46
7.3.150.0100.00514.91
7.3.140.0120.00314.85
7.3.130.0100.00514.88
7.3.120.0060.00914.89
7.3.110.0070.00914.90
7.3.100.0090.00714.80
7.3.90.0090.00615.05
7.3.80.0100.00414.88
7.3.70.0100.00514.87
7.3.60.0110.00215.03
7.3.50.0060.00715.02
7.3.40.0100.00414.93
7.3.30.0070.00714.93
7.3.20.0220.00315.71
7.3.10.0130.00615.75
7.3.00.0120.00415.75
7.2.340.0080.00714.99
7.2.330.0130.00415.70
7.2.320.0120.00315.54
7.2.310.0110.00715.65
7.2.300.0070.00815.61
7.2.290.0130.00315.66
7.2.280.0120.00215.03
7.2.270.0100.00415.04
7.2.260.0080.00615.04
7.2.250.0100.00514.97
7.2.240.0120.00515.13
7.2.230.0090.00715.11
7.2.220.0120.00315.16
7.2.210.0120.00415.15
7.2.200.0100.00415.31
7.2.190.0110.00515.15
7.2.180.0100.00515.24
7.2.170.0120.00415.25
7.2.160.0080.00715.20
7.2.150.0100.00515.98
7.2.140.0140.00416.01
7.2.130.0080.00916.09
7.2.120.0100.00815.93
7.2.110.0130.00615.96
7.2.100.0110.00715.91
7.2.90.0130.00416.09
7.2.80.0120.00715.80
7.2.70.0190.00615.97
7.2.60.0210.00615.89
7.2.50.0120.00715.90
7.2.40.0120.00815.91
7.2.30.0210.00515.95
7.2.20.0130.00615.89
7.2.10.0130.00715.87
7.2.00.0130.00715.92
7.1.330.0080.00815.40
7.1.320.0060.00715.34
7.1.310.0080.00715.34
7.1.300.0060.00815.33
7.1.290.0120.00315.36
7.1.280.0140.00514.83
7.1.270.0080.00914.81
7.1.260.0110.00614.87
7.1.250.0110.00314.76
7.1.240.0130.00414.62
7.1.230.0090.01114.48
7.1.220.0130.00514.55
7.1.210.0100.00614.55
7.1.200.0070.00814.79
7.1.190.0160.00914.38
7.1.180.0120.00614.41
7.1.170.0170.00514.33
7.1.160.0120.01014.38
7.1.150.0150.00614.41
7.1.140.0100.00814.48
7.1.130.0140.00814.36
7.1.120.0100.01014.46
7.1.110.0320.00514.46
7.1.100.0130.00714.49
7.1.90.0180.00514.55
7.1.80.0180.00514.40
7.1.70.0170.00514.41
7.1.60.0160.01018.04
7.1.50.0190.00718.14
7.1.40.0160.01018.13
7.1.30.0160.00717.98
7.1.20.0180.00818.03
7.1.10.0270.00514.49
7.1.00.0130.00714.38
7.0.330.0080.01114.09
7.0.320.0080.00814.26
7.0.310.0210.00714.15
7.0.300.0140.00714.19
7.0.290.0110.00514.34
7.0.280.0140.00314.36
7.0.270.0170.00314.34
7.0.260.0060.00714.36
7.0.250.0060.01014.51
7.0.240.0120.00514.41
7.0.230.0130.00614.52
7.0.220.0120.00514.38
7.0.210.0100.00714.48
7.0.200.0140.00514.47
7.0.190.0100.00714.57
7.0.180.0100.00614.43
7.0.170.0130.00314.45
7.0.160.0060.00814.47
7.0.150.0130.00414.44
7.0.140.0140.00314.35
7.0.130.0160.00514.31
7.0.120.0130.00514.41
7.0.110.0130.00214.31
7.0.100.0090.00614.26
7.0.90.0230.00614.46
7.0.80.0080.00914.40
7.0.70.0120.00414.31
7.0.60.0110.00614.44
7.0.50.0100.00514.39
7.0.40.0130.00414.45
7.0.30.0120.00614.48
7.0.20.0110.00714.34
7.0.10.0140.00414.46
7.0.00.0160.00514.49
5.6.400.0090.00714.26
5.6.390.0090.00714.28
5.6.380.0110.00414.33
5.6.370.0130.00414.26
5.6.360.0120.00414.40
5.6.350.0100.00614.46
5.6.340.0110.00414.34
5.6.330.0110.00814.25
5.6.320.0090.00814.38
5.6.310.0140.00414.36
5.6.300.0120.00414.33
5.6.290.0090.00614.20
5.6.280.0110.00414.18
5.6.270.0120.00614.36
5.6.260.0090.00714.31
5.6.250.0090.00614.32
5.6.240.0110.00414.29
5.6.230.0120.00614.43
5.6.220.0080.00814.34
5.6.210.0090.00614.41
5.6.200.0120.00414.36
5.6.190.0110.00514.42
5.6.180.0090.00714.36
5.6.170.0140.00314.47
5.6.160.0140.00514.38
5.6.150.0120.00714.42
5.6.140.0090.00614.42
5.6.130.0130.00414.34
5.6.120.0070.01014.26
5.6.110.0120.00514.40
5.6.100.0130.00514.33
5.6.90.0130.00314.26
5.6.80.0120.00714.45
5.6.70.0110.00514.25
5.6.60.0110.00614.42
5.6.50.0110.00914.31
5.6.40.0110.00214.24
5.6.30.0130.00314.35
5.6.20.0100.00314.29
5.6.10.0110.00614.19
5.6.00.0080.00514.13

preferences:
29.56 ms | 403 KiB | 5 Q