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("M"); }

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.63
8.3.50.0050.01122.11
8.3.40.0120.00318.92
8.3.30.0060.00919.18
8.3.20.0040.00420.09
8.3.10.0080.00021.71
8.3.00.0120.00318.05
8.2.180.0040.01416.63
8.2.170.0120.00322.96
8.2.160.0100.00320.53
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0060.00326.16
8.2.120.0050.00320.91
8.2.110.0060.00322.20
8.2.100.0080.00417.91
8.2.90.0050.00319.34
8.2.80.0040.00417.97
8.2.70.0030.00518.00
8.2.60.0050.00718.16
8.2.50.0070.00318.07
8.2.40.0030.00618.28
8.2.30.0050.00218.07
8.2.20.0040.00417.96
8.2.10.0000.00718.08
8.2.00.0000.00817.83
8.1.280.0140.00325.92
8.1.270.0040.00424.04
8.1.260.0000.00726.35
8.1.250.0040.00428.09
8.1.240.0030.00723.86
8.1.230.0120.00019.14
8.1.220.0000.00717.76
8.1.210.0050.00318.77
8.1.200.0100.00017.47
8.1.190.0000.00817.50
8.1.180.0040.00418.10
8.1.170.0040.00418.74
8.1.160.0070.00022.07
8.1.150.0000.00919.01
8.1.140.0060.00317.68
8.1.130.0050.00317.96
8.1.120.0000.00717.57
8.1.110.0080.00017.60
8.1.100.0030.00517.78
8.1.90.0030.00417.66
8.1.80.0040.00417.72
8.1.70.0070.00017.73
8.1.60.0060.00617.69
8.1.50.0030.00617.64
8.1.40.0040.00417.74
8.1.30.0000.00817.89
8.1.20.0000.00817.86
8.1.10.0040.00417.63
8.1.00.0040.00417.79
8.0.300.0000.00718.77
8.0.290.0030.00616.88
8.0.280.0000.00718.51
8.0.270.0000.00717.34
8.0.260.0030.00317.47
8.0.250.0000.00717.13
8.0.240.0020.00517.22
8.0.230.0030.00517.23
8.0.220.0030.00317.16
8.0.210.0070.00017.16
8.0.200.0030.00317.20
8.0.190.0070.00017.27
8.0.180.0040.00417.17
8.0.170.0000.00817.02
8.0.160.0000.00717.21
8.0.150.0070.00316.96
8.0.140.0050.00517.19
8.0.130.0000.00513.47
8.0.120.0030.00617.03
8.0.110.0000.00717.07
8.0.100.0050.00317.04
8.0.90.0040.00417.28
8.0.80.0030.01417.22
8.0.70.0000.00717.11
8.0.60.0040.00417.08
8.0.50.0040.00417.11
8.0.30.0150.00817.20
8.0.20.0060.01317.40
8.0.10.0040.00417.16
8.0.00.0100.00817.09
7.4.330.0000.00615.14
7.4.320.0000.00616.77
7.4.300.0030.00316.76
7.4.290.0030.00316.78
7.4.280.0060.00316.69
7.4.270.0030.00316.73
7.4.260.0050.00316.79
7.4.250.0040.00416.78
7.4.240.0020.00516.76
7.4.230.0000.00716.85
7.4.220.0100.00716.80
7.4.210.0090.00616.68
7.4.200.0040.00416.76
7.4.160.0090.00616.55
7.4.150.0090.00917.40
7.4.140.0070.01117.86
7.4.130.0070.01316.63
7.4.120.0090.00716.65
7.4.110.0120.00616.87
7.4.100.0180.00016.64
7.4.90.0120.00616.74
7.4.80.0030.01919.39
7.4.70.0140.00616.78
7.4.60.0100.01316.66
7.4.50.0000.00516.70
7.4.40.0100.00716.49
7.4.30.0160.00016.67
7.4.00.0130.00315.12
7.3.330.0000.00613.33
7.3.320.0030.00313.17
7.3.310.0050.00216.43
7.3.300.0030.00316.30
7.3.290.0070.00716.43
7.3.280.0090.01016.50
7.3.270.0090.00917.40
7.3.260.0090.00916.91
7.3.250.0040.01416.62
7.3.240.0100.01316.84
7.3.230.0090.00916.46
7.3.210.0070.01016.72
7.3.200.0150.00419.39
7.3.190.0060.01216.90
7.3.180.0120.00916.79
7.3.170.0060.01216.54
7.3.160.0080.00816.82
7.3.120.0030.01015.34
7.3.10.0190.00816.36
7.3.00.0170.01216.55
7.2.330.0090.00916.89
7.2.320.0170.00416.83
7.2.310.0090.00616.80
7.2.300.0070.01116.96
7.2.290.0120.00316.78
7.2.130.0150.01016.76
7.2.120.0190.00516.60
7.2.110.0120.01216.56
7.2.100.0200.00916.88
7.2.90.0190.00816.75
7.2.80.0090.01416.72
7.2.70.0130.01016.80
7.2.60.0110.01016.90
7.2.50.0230.00816.68
7.2.40.0110.00716.99
7.2.30.0100.00917.34
7.2.20.0110.01117.43
7.2.10.0120.00817.21
7.2.00.0120.00617.93
7.1.250.0190.00715.76
7.1.200.0000.01515.90
7.1.150.0090.00817.19
7.1.140.0100.00817.13
7.1.130.0100.01017.10
7.1.120.0100.01016.99
7.1.110.0130.00916.37
7.1.100.0080.01017.31
7.1.90.1530.01316.66
7.1.80.0110.01116.35
7.1.70.0070.01016.29
7.1.60.0190.01526.35
7.1.50.0230.01125.31
7.1.40.0310.01132.82
7.1.30.0270.01233.00
7.1.20.0350.01732.92
7.1.10.0050.01215.04
7.1.00.0110.03818.81
7.0.270.0080.01016.57
7.0.260.0130.01616.59
7.0.250.0140.01016.01
7.0.240.0070.01016.13
7.0.230.0100.00915.96
7.0.220.0110.01315.71
7.0.210.0110.00915.14
7.0.200.0090.00616.11
7.0.190.0120.00815.11
7.0.180.0140.01314.63
7.0.170.0120.00914.54
7.0.160.0120.01214.48
7.0.150.0090.00814.34
7.0.140.0050.04318.47
7.0.130.0110.00714.71
7.0.120.0100.00714.93
7.0.110.0090.00914.71
7.0.100.0090.00914.49
7.0.90.0080.00814.57
7.0.80.0060.01314.50
7.0.70.0110.00914.59
7.0.60.0150.04717.21
7.0.50.0480.03016.28
7.0.40.0120.02017.42
7.0.30.0290.04417.45
7.0.20.0220.03517.37
7.0.10.0100.04817.46
7.0.00.0080.03017.45
5.6.300.0130.06220.77
5.6.290.0150.05620.75
5.6.280.0110.06420.84
5.6.270.0170.05920.75
5.6.260.0150.05720.75
5.6.250.0210.05620.93
5.6.240.0160.05820.83
5.6.230.0190.07020.83
5.6.220.0250.07920.85
5.6.210.0160.05820.68
5.6.200.0150.05219.49
5.6.190.0110.07920.58
5.6.180.2320.06320.60
5.6.170.0290.06020.66
5.6.160.0160.06320.58
5.6.150.0120.05519.47
5.6.140.0170.07019.40
5.6.130.0130.07019.47
5.6.120.0110.07620.90
5.6.110.0100.05520.86
5.6.100.0160.07120.81
5.6.90.0240.05820.91
5.6.80.0080.05820.41
5.6.70.2360.05120.31
5.6.60.0170.07020.03
5.6.50.0150.05820.28
5.6.40.0170.05520.15
5.6.30.0220.07020.02
5.6.20.0150.08020.14
5.6.10.0170.05520.16
5.6.00.0160.05520.08
5.5.380.0160.06817.40
5.5.370.0130.08117.43
5.5.360.0190.06217.41
5.5.350.0250.06018.97
5.5.340.0140.04817.87
5.5.330.0100.05119.19
5.5.320.0080.05918.97
5.5.310.0150.04819.10
5.5.300.0130.05217.92
5.5.290.0090.07317.95
5.5.280.0110.06719.34
5.5.270.0130.05419.40
5.5.260.0130.07419.30
5.5.250.0150.06819.14
5.5.240.0200.04718.63
5.5.230.0210.06217.35
5.5.220.0150.05117.37
5.5.210.0160.05317.36
5.5.200.0190.06617.42
5.5.190.0140.07217.25
5.5.180.0160.05417.32
5.5.160.0170.05017.32
5.5.150.0190.07317.05
5.5.140.0140.05417.25
5.5.130.0170.05617.09
5.5.120.0170.07817.39
5.5.110.0270.06717.41
5.5.100.0110.05917.18
5.5.90.0160.05217.30
5.5.80.0150.07017.21
5.5.70.0150.08217.13
5.5.60.0180.07017.21
5.5.50.0210.07417.02
5.5.40.0190.06617.20
5.5.30.0150.06617.19
5.5.20.0180.07217.04
5.5.10.0220.06217.30
5.5.00.0180.05617.03
5.4.450.0560.05119.16
5.4.440.0210.05719.34
5.4.430.0290.05219.36
5.4.420.0180.06319.38
5.4.410.0300.05719.06
5.4.400.0280.04719.02
5.4.390.0420.05619.01
5.4.380.0360.06218.88
5.4.370.0350.04718.74
5.4.360.0270.05618.63
5.4.350.0240.06418.81
5.4.340.0350.05918.64
5.4.320.0170.06315.74
5.4.310.0120.05515.73
5.4.300.0090.04815.73
5.4.290.0100.04715.73
5.4.280.0110.04715.66
5.4.270.0120.04715.66
5.4.260.0140.05315.62
5.4.250.0110.04815.56
5.4.240.0140.05715.62
5.4.230.0110.04815.61
5.4.220.0140.04815.67
5.4.210.0110.04415.62
5.4.200.0110.05115.66
5.4.190.0100.05315.70
5.4.180.0110.06215.64
5.4.170.0090.06215.63
5.4.160.0100.04515.67
5.4.150.0090.05715.56
5.4.140.0130.04514.24
5.4.130.0130.04514.23
5.4.120.0130.04314.24
5.4.110.0080.04614.29
5.4.100.0080.04314.27
5.4.90.0150.03914.32
5.4.80.0110.04214.16
5.4.70.0100.04414.31
5.4.60.0120.04414.25
5.4.50.0060.06014.26
5.4.40.0140.04314.29
5.4.30.0100.04514.26
5.4.20.0110.04314.12
5.4.10.0100.05214.22
5.4.00.0140.04913.73
5.3.290.0120.04613.77
5.3.280.0090.05713.71
5.3.270.0120.04813.71
5.3.260.0110.06113.57
5.3.250.0100.04613.68
5.3.240.0090.04913.63
5.3.230.0150.04313.72
5.3.220.0130.04813.68
5.3.210.0080.05713.71
5.3.200.0100.04613.61
5.3.190.0110.04513.61
5.3.180.0150.04713.61
5.3.170.0130.04913.69
5.3.160.0130.04313.68
5.3.150.0100.05413.58
5.3.140.0110.04313.51
5.3.130.0110.04813.60
5.3.120.0080.05813.60
5.3.110.0100.04813.68
5.3.100.0080.04613.07
5.3.90.0080.04713.14
5.3.80.0070.04613.08
5.3.70.0110.04413.08
5.3.60.0110.04813.05
5.3.50.0080.04613.02
5.3.40.0100.04613.06
5.3.30.0070.04413.01
5.3.20.0110.05112.69
5.3.10.0140.04112.70
5.3.00.0110.05412.65
5.2.170.0080.04810.24
5.2.160.0090.04110.13
5.2.150.0060.03710.24
5.2.140.0120.03910.27
5.2.130.0080.03810.11
5.2.120.0100.03110.20
5.2.110.0070.04410.09
5.2.100.0100.04210.20
5.2.90.0070.03610.09
5.2.80.0080.04410.19
5.2.70.0070.03710.21
5.2.60.0080.03710.15
5.2.50.0070.03610.16
5.2.40.0090.04110.08
5.2.30.0130.0399.96
5.2.20.0090.04110.10
5.2.10.0090.0409.92
5.2.00.0100.0419.75
5.1.60.0090.0349.07
5.1.50.0070.0309.08
5.1.40.0090.0279.02
5.1.30.0070.0399.42
5.1.20.0090.0349.41
5.1.10.0070.0369.17
5.1.00.0080.0339.13
5.0.50.0090.0257.86
5.0.40.0050.0297.79
5.0.30.0060.0427.70
5.0.20.0050.0247.68
5.0.10.0060.0257.67
5.0.00.0060.0377.67
4.4.90.0050.0196.94
4.4.80.0050.0276.93
4.4.70.0030.0196.93
4.4.60.0050.0186.93
4.4.50.0050.0196.94
4.4.40.0040.0296.90
4.4.30.0040.0186.93
4.4.20.0060.0226.97
4.4.10.0050.0196.98
4.4.00.0050.0316.93
4.3.110.0050.0226.89
4.3.100.0060.0166.88
4.3.90.0030.0196.87
4.3.80.0060.0276.84
4.3.70.0050.0216.87
4.3.60.0060.0176.86
4.3.50.0040.0196.86
4.3.40.0040.0326.82
4.3.30.0050.0206.19
4.3.20.0010.0216.18
4.3.10.0050.0226.16
4.3.00.0040.02011.60

preferences:
38.47 ms | 401 KiB | 5 Q