3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-02'); $start->modify('first day of this month'); $end = new DateTime('2012-05-06'); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("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.0130.01018.43
8.3.50.0120.00622.04
8.3.40.0120.00318.83
8.3.30.0100.00719.04
8.3.20.0120.00620.00
8.3.10.0040.00421.85
8.3.00.0030.00619.38
8.2.180.0040.01116.63
8.2.170.0040.01522.96
8.2.160.0070.00720.53
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0030.00526.16
8.2.120.0070.00317.75
8.2.110.0060.00320.35
8.2.100.0030.00917.97
8.2.90.0000.00819.59
8.2.80.0040.00418.05
8.2.70.0060.00618.15
8.2.60.0030.00618.22
8.2.50.0060.00318.10
8.2.40.0040.00419.36
8.2.30.0040.00419.43
8.2.20.0040.00418.02
8.2.10.0000.00818.19
8.2.00.0000.00718.26
8.1.280.0110.00725.92
8.1.270.0040.00420.21
8.1.260.0070.00026.35
8.1.250.0060.00328.09
8.1.240.0090.00322.13
8.1.230.0040.00823.94
8.1.220.0040.00417.75
8.1.210.0050.00318.77
8.1.200.0130.00017.48
8.1.190.0050.00317.25
8.1.180.0060.00318.10
8.1.170.0000.00818.83
8.1.160.0040.00419.14
8.1.150.0050.00219.03
8.1.140.0040.00417.71
8.1.130.0030.00317.84
8.1.120.0000.00717.57
8.1.110.0050.00217.80
8.1.100.0040.00417.60
8.1.90.0000.00817.71
8.1.80.0000.00817.69
8.1.70.0080.00617.57
8.1.60.0050.00517.66
8.1.50.0070.00517.47
8.1.40.0040.00517.36
8.1.30.0050.00517.59
8.1.20.0060.00517.53
8.1.10.0080.00417.60
8.1.00.0050.00717.62
8.0.300.0000.00719.85
8.0.290.0030.00617.00
8.0.280.0050.00318.59
8.0.270.0000.00717.35
8.0.260.0040.00417.32
8.0.250.0030.00317.15
8.0.240.0000.00817.14
8.0.230.0030.00317.24
8.0.220.0000.00717.16
8.0.210.0030.00517.15
8.0.200.0090.00216.86
8.0.190.0030.00616.99
8.0.180.0090.00117.00
8.0.170.0050.00517.10
8.0.160.0050.00716.73
8.0.150.0060.00516.96
8.0.140.0040.00616.99
8.0.130.0090.00015.14
8.0.120.0040.00717.01
8.0.110.0060.00316.91
8.0.100.0090.00216.98
8.0.90.0100.00117.07
8.0.80.0070.00716.97
8.0.70.0050.00517.15
8.0.60.0050.00517.11
8.0.50.0040.00517.12
8.0.30.0110.00517.13
8.0.20.0120.00617.22
8.0.10.0080.00617.18
8.0.00.0060.01017.13
7.4.330.0020.00215.09
7.4.320.0000.00716.81
7.4.300.0020.00716.73
7.4.290.0070.00216.69
7.4.280.0060.00516.68
7.4.270.0070.00316.74
7.4.260.0060.00516.57
7.4.250.0070.00216.64
7.4.240.0050.00416.70
7.4.230.0040.00516.60
7.4.220.0080.00616.67
7.4.210.0020.01016.66
7.4.200.0090.00216.64
7.4.190.0040.00716.65
7.4.180.0050.00616.59
7.4.160.0090.00416.66
7.4.150.0090.00816.89
7.4.140.0100.00717.08
7.4.130.0110.00616.63
7.4.120.0090.00716.64
7.4.110.0110.00516.59
7.4.100.0070.00816.64
7.4.90.0110.00316.58
7.4.80.0110.00517.28
7.4.70.0090.00616.57
7.4.60.0070.00616.56
7.4.50.0080.00516.39
7.4.40.0120.00416.50
7.4.30.0080.00616.59
7.4.20.0080.00616.47
7.4.10.0060.00616.59
7.4.00.0060.00815.89
7.3.330.0050.00514.78
7.3.320.0050.00514.78
7.3.310.0090.00316.39
7.3.300.0050.00916.40
7.3.290.0080.00616.48
7.3.280.0070.00916.49
7.3.270.0050.01016.70
7.3.260.0100.00616.46
7.3.250.0100.00616.60
7.3.240.0080.00916.61
7.3.230.0090.00616.51
7.3.220.0090.00516.47
7.3.210.0100.00816.51
7.3.200.0080.00917.13
7.3.190.0100.00616.50
7.3.180.0100.00416.56
7.3.170.0090.00616.48
7.3.160.0100.00616.43
7.3.150.0070.00616.50
7.3.140.0050.01016.35
7.3.130.0080.00716.49
7.3.120.0090.00616.15
7.3.110.0080.00615.83
7.3.100.0090.00515.82
7.3.90.0110.00316.01
7.3.80.0110.00415.83
7.3.70.0080.00715.96
7.3.60.0080.00515.94
7.3.50.0080.00615.93
7.3.40.0060.00915.89
7.3.30.0070.00615.91
7.3.20.0060.00817.08
7.3.10.0200.00716.62
7.3.00.0200.00416.45
7.2.340.0110.00816.68
7.2.330.0100.00916.78
7.2.320.0090.00916.70
7.2.310.0090.01016.77
7.2.300.0110.00716.71
7.2.290.0090.00816.74
7.2.280.0110.00616.66
7.2.270.0150.00416.76
7.2.260.0110.00616.72
7.2.250.0070.01016.43
7.2.240.0080.00816.11
7.2.230.0110.00616.00
7.2.220.0120.00516.06
7.2.210.0120.00416.20
7.2.200.0070.01116.21
7.2.190.0090.00716.18
7.2.180.0110.00716.21
7.2.170.0090.00816.23
7.2.160.0110.00616.43
7.2.150.0130.00417.40
7.2.140.0130.00417.44
7.2.130.0230.00616.80
7.2.120.0190.01016.76
7.2.110.0210.00916.75
7.2.100.0140.00916.74
7.2.90.0200.00916.52
7.2.80.0250.00716.47
7.2.70.0460.00916.47
7.2.60.0340.00716.46
7.2.50.0450.00716.37
7.2.40.0350.01016.42
7.2.30.0280.00916.46
7.2.20.0360.00716.38
7.2.10.0370.00716.46
7.2.00.0370.00516.85
7.1.330.0090.00716.21
7.1.320.0110.00616.23
7.1.310.0110.00416.16
7.1.300.0060.00916.19
7.1.290.0120.00516.13
7.1.280.0080.00816.11
7.1.270.0090.00716.15
7.1.260.0090.00816.18
7.1.250.0280.00415.60
7.1.240.0210.00615.53
7.1.230.0230.00715.64
7.1.220.0230.00515.57
7.1.210.0180.00815.41
7.1.200.0190.00915.45
7.1.190.0210.00615.33
7.1.180.0180.00815.33
7.1.170.0510.00815.20
7.1.160.0460.00815.13
7.1.150.0360.00615.20
7.1.140.0470.00515.09
7.1.130.0280.00915.13
7.1.120.0460.00615.20
7.1.110.0450.00715.25
7.1.100.0420.00415.49
7.1.90.0410.00815.15
7.1.80.0440.00715.21
7.1.70.0300.00615.33
7.1.60.0280.00919.04
7.1.50.0300.00718.96
7.1.40.0320.00918.96
7.1.30.0340.00819.03
7.1.20.0300.01019.01
7.1.10.0460.00815.32
7.1.00.0250.00715.38
7.0.330.0270.00615.21
7.0.320.0190.00915.15
7.0.310.0190.00614.93
7.0.300.0480.00814.75
7.0.290.0300.00814.87
7.0.280.0210.00814.94
7.0.270.0380.00914.76
7.0.260.0470.00614.78
7.0.250.0420.00614.90
7.0.240.0410.00514.89
7.0.230.0470.00714.91
7.0.220.0420.00814.80
7.0.210.0320.00814.85
7.0.200.0340.00715.09
7.0.190.0290.00815.07
7.0.180.0300.00515.00
7.0.170.0310.00915.01
7.0.160.0300.00715.01
7.0.150.0440.00714.93
7.0.140.0260.00615.01
7.0.130.0260.00715.10
7.0.120.0320.00615.02
7.0.110.0270.00815.01
7.0.100.0290.00615.05
7.0.90.0270.00615.03
7.0.80.0270.00714.98
7.0.70.0230.00614.96
7.0.60.0270.00815.05
7.0.50.0280.00615.07
7.0.40.0230.00614.86
7.0.30.0240.00614.90
7.0.20.0280.00714.69
7.0.10.0230.00714.88
7.0.00.0250.00614.86
5.6.400.0090.00715.57
5.6.390.0100.00715.59
5.6.380.0130.00615.09
5.6.370.0090.01015.10
5.6.360.0090.00915.04
5.6.350.0100.00915.16
5.6.340.0130.00615.07
5.6.330.0100.00715.04
5.6.320.0110.00815.05
5.6.310.0110.00515.01
5.6.300.0100.01115.53
5.6.290.0100.01315.45
5.6.280.0100.01115.56
5.6.270.0110.01215.51
5.6.260.0100.01215.53
5.6.250.0100.01215.53
5.6.240.0100.01115.53
5.6.230.0090.01215.51
5.6.220.0100.01015.54
5.6.210.0120.01215.50
5.6.200.0120.00915.57
5.6.190.0100.01315.54
5.6.180.0090.01115.58
5.6.170.0120.01215.54
5.6.160.0090.01215.49
5.6.150.0120.00915.47
5.6.140.0100.01215.52
5.6.130.0090.01215.55
5.6.120.0120.01015.58
5.6.110.0090.01215.51
5.6.100.0080.01315.53
5.6.90.0110.01315.49
5.6.80.0090.01215.37
5.6.70.0100.01515.43
5.6.60.0100.01315.44
5.6.50.0100.01415.43
5.6.40.0100.01115.35
5.6.30.0110.01315.43
5.6.20.0100.01015.41
5.6.10.0110.01115.33
5.6.00.0100.01115.34
5.5.380.0080.01113.63
5.5.370.0090.01113.63
5.5.360.0110.00913.51
5.5.350.0100.01413.49
5.5.340.0070.01213.57
5.5.330.0110.01013.56
5.5.320.0090.00913.64
5.5.310.0090.01213.67
5.5.300.0110.01013.62
5.5.290.0090.00913.60
5.5.280.0100.01013.56
5.5.270.0090.01313.53
5.5.260.0100.01013.57
5.5.250.0100.00913.55
5.5.240.0070.01213.45
5.5.230.0090.01013.53
5.5.220.0080.00913.52
5.5.210.0090.01113.58
5.5.200.0120.00713.42
5.5.190.0080.01213.35
5.5.180.0080.01013.40
5.5.170.0100.00713.63
5.5.160.0110.00913.45
5.5.150.0100.00913.42
5.5.140.0090.01113.50
5.5.130.0080.01113.37
5.5.120.0080.01113.38
5.5.110.0090.00913.49
5.5.100.0090.00913.57
5.5.90.0110.00913.43
5.5.80.0100.00813.44
5.5.70.0100.01013.50
5.5.60.0100.01113.41
5.5.50.0090.01013.38
5.5.40.0090.01013.47
5.5.30.0100.01013.50
5.5.20.0070.01513.37
5.5.10.0100.01113.44
5.5.00.0090.01113.48
5.4.450.0120.01212.49
5.4.440.0070.01012.47
5.4.430.0080.00812.48
5.4.420.0080.00912.42
5.4.410.0100.01012.43
5.4.400.0070.01412.28
5.4.390.0080.01412.42
5.4.380.0100.00812.44
5.4.370.0070.01112.39
5.4.360.0100.00912.38
5.4.350.0070.00912.40
5.4.340.0090.00712.40
5.4.330.0080.00511.73
5.4.320.0070.01312.39
5.4.310.0090.01012.34
5.4.300.0090.00912.39
5.4.290.0080.00912.44
5.4.280.0090.00812.42
5.4.270.0070.01012.42
5.4.260.0070.00912.39
5.4.250.0090.01012.44
5.4.240.0080.00812.37
5.4.230.0080.00912.28
5.4.220.0090.00712.37
5.4.210.0080.01012.33
5.4.200.0070.01412.30
5.4.190.0070.01412.36
5.4.180.0090.00912.38
5.4.170.0090.00912.34
5.4.160.0080.00912.30
5.4.150.0090.00912.30
5.4.140.0080.01012.11
5.4.130.0080.00912.11
5.4.120.0110.01012.16
5.4.110.0080.00912.18
5.4.100.0090.00912.15
5.4.90.0090.00812.12
5.4.80.0080.00912.21
5.4.70.0080.00912.18
5.4.60.0090.00912.14
5.4.50.0080.00912.11
5.4.40.0090.01012.13
5.4.30.0100.00812.24
5.4.20.0080.00812.22
5.4.10.0080.00912.18
5.4.00.0070.01012.06

preferences:
67.97 ms | 401 KiB | 5 Q