3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2014-12-01'); $start->modify('first day of this month'); $end = new DateTime('2015-05-30'); $end->modify('first day of this month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $dt) { echo $dt->format("mY") . 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.0000.01416.86
8.3.50.0080.00922.92
8.3.40.0140.00018.89
8.3.30.0070.00719.27
8.3.20.0040.00420.34
8.3.10.0060.00323.61
8.3.00.0040.00417.75
8.2.180.0090.00616.48
8.2.170.0070.00722.96
8.2.160.0090.00620.56
8.2.150.0080.00024.18
8.2.140.0000.00724.66
8.2.130.0120.00326.16
8.2.120.0040.00421.06
8.2.110.0060.00322.39
8.2.100.0000.01218.03
8.2.90.0080.00019.17
8.2.80.0090.00017.97
8.2.70.0030.00617.86
8.2.60.0000.00918.04
8.2.50.0000.00818.07
8.2.40.0050.00318.03
8.2.30.0040.00418.35
8.2.20.0040.00417.82
8.2.10.0000.00818.24
8.2.00.0030.00518.01
8.1.280.0110.00625.92
8.1.270.0040.00424.02
8.1.260.0000.00726.35
8.1.250.0050.00228.09
8.1.240.0060.00323.96
8.1.230.0070.00419.13
8.1.220.0000.00817.78
8.1.210.0040.00418.77
8.1.200.0080.00317.48
8.1.190.0040.00417.36
8.1.180.0000.00818.10
8.1.170.0090.00018.82
8.1.160.0040.00422.00
8.1.150.0070.00019.03
8.1.140.0030.00617.73
8.1.130.0000.00717.96
8.1.120.0020.00517.64
8.1.110.0040.00417.78
8.1.100.0000.00717.77
8.1.90.0030.00717.77
8.1.80.0000.00717.68
8.1.70.0070.00017.68
8.1.60.0050.00217.79
8.1.50.0080.00017.77
8.1.40.0030.00617.73
8.1.30.0030.00517.79
8.1.20.0040.00417.79
8.1.10.0030.00517.68
8.1.00.0040.00417.63
8.0.300.0040.00418.77
8.0.290.0000.00717.00
8.0.280.0040.00418.58
8.0.270.0000.00717.41
8.0.260.0000.00617.45
8.0.250.0000.00717.24
8.0.240.0070.00017.19
8.0.230.0040.00417.24
8.0.220.0070.00017.21
8.0.210.0040.00417.13
8.0.200.0030.00517.19
8.0.190.0050.00317.24
8.0.180.0000.00717.21
8.0.170.0040.00417.09
8.0.160.0040.00417.16
8.0.150.0030.00617.08
8.0.140.0030.00417.01
8.0.130.0030.00313.51
8.0.120.0030.00517.22
8.0.110.0070.00017.05
8.0.100.0040.00417.00
8.0.90.0050.00217.19
8.0.80.0060.01017.12
8.0.70.0050.00316.96
8.0.60.0020.00517.16
8.0.50.0040.00417.02
8.0.30.0110.01117.17
8.0.20.0120.00817.49
8.0.10.0040.00417.13
8.0.00.0050.01217.05
7.4.330.0070.00015.28
7.4.320.0050.00216.81
7.4.300.0000.00716.83
7.4.290.0030.00316.80
7.4.280.0040.00416.71
7.4.270.0070.00016.66
7.4.260.0070.00016.75
7.4.250.0000.00816.82
7.4.240.0050.00216.68
7.4.230.0000.00816.75
7.4.220.0080.01116.82
7.4.210.0100.00716.71
7.4.200.0000.00716.69
7.4.160.0120.00816.61
7.4.150.0030.01717.40
7.4.140.0130.00517.86
7.4.130.0080.00916.66
7.4.120.0130.00416.68
7.4.110.0100.01316.59
7.4.100.0070.01016.61
7.4.90.0100.00716.88
7.4.80.0090.01319.39
7.4.70.0120.00616.54
7.4.60.0090.00616.86
7.4.50.0000.00516.68
7.4.40.0090.00916.58
7.4.30.0100.00716.77
7.4.00.0090.00614.80
7.3.330.0000.00613.38
7.3.320.0000.00613.30
7.3.310.0030.00316.51
7.3.300.0030.00316.32
7.3.290.0100.01016.42
7.3.280.0080.00716.47
7.3.270.0140.00617.40
7.3.260.0120.00616.71
7.3.250.0030.01516.69
7.3.240.0030.01316.48
7.3.230.0100.00616.48
7.3.210.0110.01116.80
7.3.200.0060.01019.39
7.3.190.0040.01216.64
7.3.180.0060.00916.47
7.3.170.0100.00716.82
7.3.160.0100.01416.64
7.3.10.0140.00717.00
7.3.00.0090.01016.89
7.2.330.0150.00417.02
7.2.320.0070.01016.79
7.2.310.0130.00616.91
7.2.300.0030.01316.82
7.2.290.0130.00316.94
7.2.130.0120.00517.00
7.2.120.0020.01416.95
7.2.110.0130.00316.84
7.2.100.0140.00517.11
7.2.90.0080.01217.12
7.2.80.0140.00417.04
7.2.70.0090.00917.09
7.2.60.0130.00716.95
7.2.50.0120.00617.01
7.2.40.0060.01116.98
7.2.30.0120.00717.05
7.2.20.0130.00517.11
7.2.10.0110.00617.25
7.2.00.0030.01317.14
7.1.250.0040.01315.90
7.1.240.0100.00815.90
7.1.230.0100.00615.73
7.1.220.0070.00915.95
7.1.210.0120.00516.05
7.1.200.0090.00815.90
7.1.190.0110.00715.91
7.1.180.0030.01315.94
7.1.170.0060.01315.82
7.1.160.0070.00815.76
7.1.150.0030.01215.93
7.1.140.0070.00815.85
7.1.130.0040.00915.91
7.1.120.0040.00715.93
7.1.110.0060.01015.96
7.1.100.0080.00515.75
7.1.90.0050.00915.95
7.1.80.0060.00815.95
7.1.70.0080.00716.25
7.1.60.0080.01117.10
7.1.50.0120.00816.27
7.1.40.0050.00815.87
7.1.30.0090.00715.98
7.1.20.0060.01015.85
7.1.10.0070.01015.70
7.1.00.0030.03418.06
7.0.330.0070.01115.42
7.0.320.0070.01115.49
7.0.310.0110.01015.11
7.0.300.0070.00615.22
7.0.290.0070.00715.37
7.0.280.0070.01215.55
7.0.270.0090.00815.29
7.0.260.0090.00815.65
7.0.250.0030.01315.43
7.0.240.0040.01115.51
7.0.230.0060.01015.58
7.0.220.0020.01215.46
7.0.210.0110.00215.53
7.0.200.0080.00615.96
7.0.190.0100.00215.68
7.0.180.0060.00815.71
7.0.170.0050.00715.41
7.0.160.0070.00915.55
7.0.150.0100.00715.44
7.0.140.0090.02317.65
7.0.130.0090.00315.63
7.0.120.0100.00715.48
7.0.110.0060.01015.29
7.0.100.0070.00915.47
7.0.90.0100.00615.54
7.0.80.0070.00915.23
7.0.70.0080.00815.63
7.0.60.0060.03516.94
7.0.50.0090.03216.43
7.0.40.0060.03415.72
7.0.30.0150.02315.74
7.0.20.0120.03115.64
7.0.10.0050.03515.76
7.0.00.0050.03315.73
5.6.380.0050.01014.42
5.6.370.0080.01014.24
5.6.360.0100.00714.19
5.6.350.0080.00814.44
5.6.340.0070.01014.31
5.6.330.0050.01314.35
5.6.320.0080.01114.40
5.6.310.0050.01614.27
5.6.300.0050.01514.11
5.6.290.0080.00614.30
5.6.280.0050.03016.52
5.6.270.0090.00414.53
5.6.260.0080.00814.30
5.6.250.0100.00514.29
5.6.240.0060.01214.44
5.6.230.0120.00714.34
5.6.220.0050.01214.21
5.6.210.0070.01916.38
5.6.200.0090.03215.58
5.6.190.0040.03916.38
5.6.180.0100.02216.25
5.6.170.0170.02016.13
5.6.160.0130.03016.49
5.6.150.0100.02315.51
5.6.140.0080.02515.67
5.6.130.0070.03215.64
5.6.120.0080.02316.57
5.6.110.0060.03816.72
5.6.100.0060.03816.66
5.6.90.0090.02416.57
5.6.80.0090.02416.49
5.6.70.0050.00814.36
5.6.60.0050.00914.30
5.6.50.0070.00514.31
5.6.40.0050.01014.24
5.6.30.0020.01314.21
5.6.20.0060.00714.37
5.6.10.0030.01114.34
5.6.00.0110.00214.25
5.5.380.0040.01011.03
5.5.370.0030.01110.83
5.5.360.0100.00310.83
5.5.350.0060.02814.23
5.5.340.0070.03013.45
5.5.330.0090.02214.11
5.5.320.0140.02914.01
5.5.310.0160.02814.10
5.5.300.0040.03413.35
5.5.290.0050.01913.52
5.5.280.0050.03414.54
5.5.270.0060.02714.47
5.5.260.0110.02814.33
5.5.250.0060.01714.40
5.5.240.0120.03013.95
5.5.230.0030.00911.00
5.5.220.0040.00911.23
5.5.210.0080.00211.19
5.5.200.0020.00910.92
5.5.190.0010.00910.91
5.5.180.0050.00511.15
5.5.170.0090.00311.13
5.5.160.0050.00510.95
5.5.150.0050.00610.95
5.5.140.0030.00410.96
5.5.130.0050.00811.23
5.5.120.0020.00810.92
5.5.110.0030.00610.99
5.5.100.0090.00311.14
5.5.90.0080.00510.96
5.5.80.0040.00911.02
5.5.70.0070.00111.14
5.5.60.0030.00911.13
5.5.50.0050.00511.15
5.5.40.0040.00810.99
5.5.30.0060.00711.05
5.5.20.0070.00211.07
5.5.10.0070.00510.97
5.5.00.0030.01011.07
5.4.450.0220.01913.95
5.4.440.0110.01913.99
5.4.430.0130.01613.89
5.4.420.0040.02013.83
5.4.410.0180.01913.70
5.4.400.0100.01713.69
5.4.390.0210.01713.70
5.4.380.0070.02113.55
5.4.370.0080.02113.38
5.4.360.0090.02313.62
5.4.350.0080.02213.44
5.4.340.0110.02213.62
5.4.330.0050.00610.95
5.4.320.0080.01311.47
5.4.310.0060.01611.47
5.4.300.0070.01511.57
5.4.290.0070.01611.41
5.4.280.0060.01811.34
5.4.270.0070.01611.46
5.4.260.0070.01511.56
5.4.250.0060.01611.53
5.4.240.0060.01811.35
5.4.230.0070.01811.49
5.4.220.0070.01511.24
5.4.210.0060.01711.28
5.4.200.0070.01711.40
5.4.190.0050.01911.46
5.4.180.0050.01611.51
5.4.170.0050.01711.47
5.4.160.0050.01711.42
5.4.150.0030.01711.42
5.4.140.0040.01811.29
5.4.130.0060.01611.31
5.4.120.0040.01911.18
5.4.110.0070.01611.34
5.4.100.0050.01611.28
5.4.90.0070.01511.29
5.4.80.0030.01911.32
5.4.70.0070.01511.33
5.4.60.0070.01411.20
5.4.50.0070.01411.29
5.4.40.0070.01411.29
5.4.30.0040.01811.33
5.4.20.0040.01811.44
5.4.10.0070.01311.26
5.4.00.0070.01711.20
5.3.290.0080.01511.47
5.3.280.0080.01811.35
5.3.270.0060.01811.40
5.3.260.0050.01911.38
5.3.250.0080.01611.35
5.3.240.0050.01711.38
5.3.230.0070.01611.37
5.3.220.0070.01711.07
5.3.210.0080.01811.23
5.3.200.0070.01711.21
5.3.190.0070.01611.27
5.3.180.0100.01311.31
5.3.170.0070.01511.37
5.3.160.0070.01511.35
5.3.150.0050.01911.33
5.3.140.0050.01511.23
5.3.130.0060.01911.27
5.3.120.0060.01611.29
5.3.110.0050.01811.32
5.3.100.0080.01411.10
5.3.90.0050.01611.05
5.3.80.0030.01910.99
5.3.70.0070.01711.02
5.3.60.0060.01710.96
5.3.50.0070.01611.00
5.3.40.0050.01811.04
5.3.30.0060.01611.09
5.3.20.0050.01610.98
5.3.10.0060.01610.79
5.3.00.0060.01510.80
5.2.170.0020.0169.60
5.2.160.0020.0149.60
5.2.150.0040.0149.59
5.2.140.0050.0149.50
5.2.130.0060.0139.52
5.2.120.0040.0139.43
5.2.110.0040.0179.46
5.2.100.0030.0159.44
5.2.90.0040.0139.52
5.2.80.0030.0159.47
5.2.70.0030.0169.50
5.2.60.0030.0159.46
5.2.50.0040.0159.46
5.2.40.0040.0129.42
5.2.30.0060.0119.38
5.2.20.0040.0149.39
5.2.10.0040.0149.39
5.2.00.0030.0159.23
5.1.60.0040.0129.00
5.1.50.0040.0128.99
5.1.40.0040.0128.99
5.1.30.0030.0119.10
5.1.20.0050.0119.11
5.1.10.0040.0119.02
5.1.00.0050.0109.02
5.0.50.0030.0108.51
5.0.40.0040.0108.46
5.0.30.0040.0138.40
5.0.20.0060.0078.39
5.0.10.0030.0098.39
5.0.00.0080.0098.38
4.4.90.0050.0067.90
4.4.80.0010.0097.89
4.4.70.0030.0077.89
4.4.60.0020.0097.89
4.4.50.0020.0087.89
4.4.40.0050.0087.88
4.4.30.0030.0077.89
4.4.20.0040.0067.92
4.4.10.0040.0067.92
4.4.00.0030.0117.89
4.3.110.0050.0067.86
4.3.100.0010.0097.86
4.3.90.0020.0087.85
4.3.80.0020.0127.83
4.3.70.0020.0097.85
4.3.60.0010.0097.85
4.3.50.0020.0097.85
4.3.40.0010.0137.82
4.3.30.0020.0087.40
4.3.20.0020.0097.39
4.3.10.0010.0117.38
4.3.00.0050.00711.63

preferences:
43.49 ms | 401 KiB | 5 Q