3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime(date('Y-m-d')); $start->modify('first day of this month'); $end = new DateTime(date('Y-m-d', strtotime('-1 years'))); $end->modify('first day of next month'); $interval = DateInterval::createFromDateString('1 month'); $period = new DatePeriod($start, $interval, $end); die(var_dump(date('Y-m-d', strtotime('-1 years')))); foreach ($period as $dt) { echo $dt->format("Y-m") . "<br>\n"; }

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.00716.63
8.3.50.0080.00922.93
8.3.40.0120.00319.13
8.3.30.0100.00319.13
8.3.20.0070.00020.33
8.3.10.0070.00023.66
8.3.00.0060.00319.50
8.2.180.0120.00617.13
8.2.170.0040.01122.96
8.2.160.0120.00620.52
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0000.00720.96
8.2.110.0060.00322.29
8.2.100.0040.00818.16
8.2.90.0040.00419.30
8.2.80.0040.00417.97
8.2.70.0030.00517.75
8.2.60.0060.00318.04
8.2.50.0060.00318.07
8.2.40.0000.00819.88
8.2.30.0050.00218.19
8.2.20.0050.00217.82
8.2.10.0040.00418.01
8.2.00.0020.00517.82
8.1.280.0170.00025.92
8.1.270.0080.00024.04
8.1.260.0030.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00623.99
8.1.230.0000.01019.22
8.1.220.0030.00517.79
8.1.210.0000.00918.77
8.1.200.0030.00617.60
8.1.190.0040.00417.47
8.1.180.0000.00918.10
8.1.170.0050.00518.83
8.1.160.0040.00422.01
8.1.150.0030.00619.02
8.1.140.0040.00417.66
8.1.130.0040.00417.97
8.1.120.0030.00317.59
8.1.110.0000.00917.66
8.1.100.0040.00417.68
8.1.90.0070.00017.63
8.1.80.0040.00417.56
8.1.70.0050.00317.58
8.1.60.0030.00617.57
8.1.50.0000.00917.59
8.1.40.0080.00017.73
8.1.30.0030.00517.87
8.1.20.0030.00617.83
8.1.10.0020.00517.70
8.1.00.0060.00317.79
8.0.300.0080.00018.77
8.0.290.0000.00717.00
8.0.280.0040.00418.53
8.0.270.0040.00417.38
8.0.260.0070.00017.28
8.0.250.0000.00717.12
8.0.240.0030.00317.12
8.0.230.0000.00717.10
8.0.220.0000.00617.18
8.0.210.0030.00317.18
8.0.200.0000.00617.16
8.0.190.0050.00217.27
8.0.180.0000.00817.20
8.0.170.0080.00017.19
8.0.160.0000.00717.28
8.0.150.0040.00417.16
8.0.140.0000.00717.03
8.0.130.0030.00313.52
8.0.120.0000.00817.19
8.0.110.0040.00417.17
8.0.100.0070.00016.98
8.0.90.0030.00617.02
8.0.80.0000.01417.19
8.0.70.0050.00217.23
8.0.60.0030.00517.20
8.0.50.0000.00717.07
8.0.30.0110.00817.39
8.0.20.0050.01517.40
8.0.10.0080.00017.16
8.0.00.0090.00816.99
7.4.330.0020.00215.03
7.4.320.0000.00616.56
7.4.300.0030.00316.75
7.4.290.0000.00816.51
7.4.280.0000.00716.72
7.4.270.0030.00316.77
7.4.260.0080.00016.75
7.4.250.0000.00816.61
7.4.240.0030.00516.68
7.4.230.0040.00416.63
7.4.220.0150.00316.64
7.4.210.0090.01016.65
7.4.200.0050.00516.83
7.4.160.0060.00916.61
7.4.150.0160.00317.40
7.4.140.0080.00917.86
7.4.130.0080.01016.66
7.4.120.0080.00916.84
7.4.110.0110.00816.63
7.4.100.0100.00716.73
7.4.90.0040.01416.70
7.4.80.0160.00719.39
7.4.70.0090.01016.54
7.4.60.0120.00616.64
7.4.50.0040.00416.66
7.4.40.0120.00616.45
7.4.30.0140.00316.42
7.4.00.0060.00915.36
7.3.330.0050.00013.23
7.3.320.0060.00013.21
7.3.310.0030.00316.35
7.3.300.0030.00316.27
7.3.290.0040.01116.41
7.3.280.0060.01016.43
7.3.270.0150.01017.40
7.3.260.0070.01016.30
7.3.250.0140.01016.52
7.3.240.0120.00616.71
7.3.230.0140.00316.52
7.3.210.0060.01216.49
7.3.200.0160.00019.39
7.3.190.0100.00716.54
7.3.180.0060.01016.43
7.3.170.0090.00616.43
7.3.160.0080.00816.58
7.2.330.0070.01116.84
7.2.320.0110.00716.83
7.2.310.0090.01216.62
7.2.300.0090.00916.59
7.2.290.0100.00716.81
7.2.110.0110.00416.63
7.2.100.0130.00516.82
7.2.90.0150.00516.72
7.2.80.0170.00516.85
7.2.70.0410.00316.97
7.2.60.0130.00317.13
7.2.50.0210.00316.84
7.2.40.0090.00617.13
7.2.30.0210.00317.13
7.2.20.0230.00316.90
7.2.10.0130.00516.66
7.2.00.0130.00718.36
7.1.230.0120.00715.97
7.1.220.0090.00916.04
7.1.210.0140.00315.96
7.1.200.0110.00715.95
7.1.190.0300.00815.79
7.1.180.0160.00815.94
7.1.170.0220.00316.02
7.1.160.0130.00415.73
7.1.150.0060.00915.86
7.1.140.0090.00915.81
7.1.130.0100.00715.92
7.1.120.0180.00315.95
7.1.110.0100.00515.95
7.1.100.0250.00216.66
7.1.90.0500.00915.77
7.1.80.0250.00016.01
7.1.70.0080.00516.61
7.1.60.0180.01017.73
7.1.50.0250.01716.60
7.1.40.0270.01216.12
7.1.30.0160.01016.04
7.1.20.0210.00016.13
7.1.10.0200.00615.88
7.1.00.0080.04018.99
7.0.310.0100.00815.50
7.0.300.0110.00615.53
7.0.290.0180.00615.50
7.0.280.0060.00915.37
7.0.270.0180.00415.40
7.0.260.0050.00715.46
7.0.250.0170.00715.29
7.0.240.0140.00315.50
7.0.230.0170.00615.57
7.0.220.0140.00215.38
7.0.210.0120.00315.45
7.0.200.0130.00616.21
7.0.190.0350.01115.57
7.0.180.0220.00315.73
7.0.170.0130.00015.45
7.0.160.0150.00615.30
7.0.150.0110.01115.55
7.0.140.0040.04118.88
7.0.130.0080.00815.44
7.0.120.0320.00615.49
7.0.110.0080.00815.61
7.0.100.0090.04217.87
7.0.90.0340.04017.80
7.0.80.0270.04117.76
7.0.70.0450.03717.74
7.0.60.0280.02317.84
7.0.50.0360.04017.89
7.0.40.0130.03916.87
7.0.30.0050.05316.86
7.0.20.0090.04916.88
7.0.10.0140.04016.71
7.0.00.0090.04416.72
5.6.380.0040.01214.29
5.6.370.0230.00014.49
5.6.360.0090.01014.13
5.6.350.0130.00014.48
5.6.340.0130.00014.66
5.6.330.0120.00014.18
5.6.320.0100.00514.25
5.6.310.0110.00514.48
5.6.300.0110.00514.55
5.6.290.0100.00514.43
5.6.280.0080.03817.61
5.6.270.0140.00014.39
5.6.260.0090.00614.30
5.6.250.0050.03517.64
5.6.240.0100.04617.45
5.6.230.0090.03517.52
5.6.220.0100.04517.65
5.6.210.0200.02517.40
5.6.200.0120.02717.78
5.6.190.0120.04317.60
5.6.180.0070.04117.78
5.6.170.0150.04317.58
5.6.160.0070.03917.71
5.6.150.0110.04317.60
5.6.140.0150.02817.80
5.6.130.0120.03617.80
5.6.120.0110.04117.80
5.6.110.0170.04217.67
5.6.100.0110.04417.79
5.6.90.0090.03117.78
5.6.80.0090.02117.52
5.6.70.0090.04217.39
5.6.60.0070.03317.38
5.6.50.0090.04617.35
5.6.40.0130.03817.39
5.6.30.0160.02517.20
5.6.20.0110.04417.47
5.6.10.0090.04217.21
5.6.00.0060.04017.38
5.5.380.0110.04316.68
5.5.370.0090.02616.60
5.5.360.0020.04516.57
5.5.350.0060.04516.62
5.5.340.0030.03316.85
5.5.330.0100.02816.76
5.5.320.0030.02816.71
5.5.310.0070.04316.77
5.5.300.0080.02616.79
5.5.290.0130.02216.83
5.5.280.0040.03616.79
5.5.270.0080.02016.80
5.5.260.0060.04116.79
5.5.250.0090.03516.66
5.5.240.0110.04016.53
5.5.230.0100.04416.48
5.5.220.0060.04616.45
5.5.210.0040.04216.54
5.5.200.0050.02516.46
5.5.190.0110.04116.51
5.5.180.0100.03116.53
5.5.170.0180.00014.45
5.5.160.0060.02516.54
5.5.150.0060.02416.49
5.5.140.0150.01616.53
5.5.130.0050.03016.51
5.5.120.0050.02316.48
5.5.110.0100.02216.50
5.5.100.0120.02016.44
5.5.90.0110.01716.37
5.5.80.0080.02516.44
5.5.70.0040.02316.35
5.5.60.0090.02216.43
5.5.50.0060.02016.44
5.5.40.0050.02416.42
5.5.30.0070.02316.44
5.5.20.0090.02016.42
5.5.10.0080.02016.37
5.5.00.0110.01816.42
5.4.450.0070.02215.97
5.4.440.0080.02116.08
5.4.430.0050.02216.08
5.4.420.0060.02015.96
5.4.410.0080.03415.90
5.4.400.0070.03615.95
5.4.390.0080.04115.91
5.4.380.0120.03715.91
5.4.370.0090.04015.88
5.4.360.0070.04315.95
5.4.350.0040.04515.91
5.4.340.0060.02316.01
5.4.330.0110.00312.79
5.4.320.0040.02615.88
5.4.310.0070.03015.91
5.4.300.0070.02215.94
5.4.290.0080.02315.78
5.4.280.0070.02515.93
5.4.270.0100.02015.92
5.4.260.0040.02615.87
5.4.250.0060.02115.90
5.4.240.0070.01815.94
5.4.230.0070.02015.95
5.4.220.0070.01915.91
5.4.210.0050.02015.91
5.4.200.0090.01815.84
5.4.190.0060.02315.95
5.4.180.0100.01515.94
5.4.170.0080.01815.90
5.4.160.0050.02215.90
5.4.150.0110.02515.95
5.4.140.0060.02014.55
5.4.130.0070.01814.56
5.4.120.0090.02014.60
5.4.110.0080.02014.55
5.4.100.0070.02014.64
5.4.90.0070.01914.53
5.4.80.0070.02014.58
5.4.70.0060.02014.58
5.4.60.0090.02014.56
5.4.50.0080.01814.60
5.4.40.0040.02214.58
5.4.30.0120.01714.58
5.4.20.0030.02214.51
5.4.10.0020.02614.51
5.4.00.0060.02014.18
5.3.290.0050.03813.70
5.3.280.0030.02313.67
5.3.270.0060.02113.69
5.3.260.0070.02013.69
5.3.250.0100.03213.62
5.3.240.0050.03513.62
5.3.230.0080.02513.69
5.3.220.0050.01913.67
5.3.210.0040.02113.67
5.3.200.0090.01713.67
5.3.190.0040.02113.66
5.3.180.0060.02013.66
5.3.170.0090.02013.63
5.3.160.0050.01913.65
5.3.150.0070.02313.58
5.3.140.0090.01913.60
5.3.130.0080.01813.58
5.3.120.0090.02113.65
5.3.110.0110.01813.60
5.3.100.0040.01913.41
5.3.90.0040.02213.40
5.3.80.0060.02113.39
5.3.70.0060.02013.33
5.3.60.0040.02113.33
5.3.50.0110.01913.30
5.3.40.0050.02113.32
5.3.30.0070.01913.35
5.3.20.0040.02013.23
5.3.10.0080.01613.10
5.3.00.0070.01713.09
5.2.170.0020.01612.73
5.2.160.0070.01512.73
5.2.150.0040.01512.73
5.2.140.0020.01812.73
5.2.130.0040.01712.73
5.2.120.0060.02012.73
5.2.110.0030.02812.73
5.2.100.0040.02312.73
5.2.90.0090.01612.73
5.2.80.0050.02812.73
5.2.70.0070.01612.73
5.2.60.0040.03012.73
5.2.50.0130.03212.73
5.2.40.0070.01712.73
5.2.30.0070.03412.73
5.2.20.0030.02812.73
5.2.10.0050.03212.73
5.2.00.0110.02712.73
5.1.60.0050.01712.73
5.1.50.0050.01612.73
5.1.40.0070.01912.73
5.1.30.0070.01712.73
5.1.20.0060.01712.73
5.1.10.0030.01812.73
5.1.00.0030.01312.73
5.0.50.0040.01412.73
5.0.40.0020.02512.73
5.0.30.0000.03612.73
5.0.20.0030.02112.73
5.0.10.0040.02312.73
5.0.00.0060.03112.73
4.4.90.0060.00712.73
4.4.80.0070.01312.73
4.4.70.0020.01012.73
4.4.60.0020.01212.73
4.4.50.0030.01812.73
4.4.40.0050.01712.73
4.4.30.0030.01112.73
4.4.20.0060.01512.73
4.4.10.0040.01712.73
4.4.00.0010.01612.73
4.3.110.0000.01612.73
4.3.100.0020.01812.73
4.3.90.0060.01512.73
4.3.80.0030.02212.73
4.3.70.0030.01912.73
4.3.60.0040.01912.73
4.3.50.0020.02112.73
4.3.40.0050.02012.73
4.3.30.0000.01212.73
4.3.20.0020.02112.73
4.3.10.0050.01812.73
4.3.00.0020.01512.73

preferences:
29.83 ms | 401 KiB | 5 Q