3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2010-12-02'))->modify('first day of this month'); $end = (new DateTime('2012-05-06'))->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") . "\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.0090.00616.88
8.3.50.0090.00616.61
8.3.40.0060.01018.96
8.3.30.0110.00418.70
8.3.20.0030.00620.35
8.3.10.0040.00423.61
8.3.00.0000.00819.66
8.2.180.0150.00618.66
8.2.170.0110.00722.96
8.2.160.0040.01119.34
8.2.150.0030.00625.66
8.2.140.0040.00424.66
8.2.130.0000.01119.32
8.2.120.0080.00026.35
8.2.110.0000.01122.09
8.2.100.0040.00817.97
8.2.90.0040.00418.00
8.2.80.0040.00419.41
8.2.70.0030.00617.88
8.2.60.0040.00418.05
8.2.50.0040.00418.10
8.2.40.0070.00020.63
8.2.30.0060.00319.46
8.2.20.0070.00018.08
8.2.10.0020.00518.21
8.2.00.0040.00418.11
8.1.280.0180.00425.92
8.1.270.0080.00022.21
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00422.18
8.1.230.0040.00720.97
8.1.220.0000.00817.77
8.1.210.0060.00319.03
8.1.200.0060.00317.60
8.1.190.0040.00417.47
8.1.180.0080.00018.10
8.1.170.0000.00818.83
8.1.160.0050.00219.08
8.1.150.0040.00419.10
8.1.140.0050.00319.64
8.1.130.0040.00419.09
8.1.120.0080.00017.71
8.1.110.0030.00517.64
8.1.100.0030.00617.62
8.1.90.0050.00317.71
8.1.80.0020.00517.73
8.1.70.0040.00417.61
8.1.60.0040.00417.79
8.1.50.0000.00817.73
8.1.40.0080.00017.70
8.1.30.0040.00417.92
8.1.20.0050.00217.79
8.1.10.0000.00817.67
8.1.00.0080.00017.75
8.0.300.0000.00819.98
8.0.290.0030.00616.88
8.0.280.0000.00818.50
8.0.270.0070.00017.41
8.0.260.0060.00016.98
8.0.250.0000.00717.15
8.0.240.0030.00617.21
8.0.230.0070.00017.22
8.0.220.0030.00317.13
8.0.210.0020.00517.04
8.0.200.0060.00017.24
8.0.190.0040.00417.27
8.0.180.0030.00517.17
8.0.170.0070.00017.20
8.0.160.0040.00417.13
8.0.150.0040.00416.94
8.0.140.0030.00617.16
8.0.130.0000.00513.50
8.0.120.0060.00315.37
8.0.110.0050.00715.35
8.0.100.0050.00515.31
8.0.90.0080.00315.27
8.0.80.0090.00915.37
8.0.70.0080.00315.32
8.0.60.0080.00215.30
8.0.50.0060.00615.37
8.0.30.0110.00616.34
8.0.20.0080.01116.45
8.0.10.0040.00615.44
8.0.00.0060.00715.31
7.4.330.0000.00515.55
7.4.320.0030.00316.79
7.4.300.0000.00616.72
7.4.290.0030.00616.73
7.4.280.0000.00716.63
7.4.270.0030.00316.70
7.4.260.0000.00716.71
7.4.250.0020.00715.04
7.4.240.0040.00815.10
7.4.230.0070.00415.20
7.4.220.0150.00515.09
7.4.210.0140.00315.05
7.4.200.0100.00115.09
7.4.190.0030.01013.48
7.4.180.0130.00213.60
7.4.160.0100.00415.59
7.4.150.0090.00815.40
7.4.140.0100.00716.72
7.4.130.0080.00915.06
7.4.120.0080.00915.87
7.4.110.0090.00614.96
7.4.100.0080.00815.03
7.4.90.0100.00615.14
7.4.80.0080.00616.39
7.4.70.0100.00614.96
7.4.60.0090.00615.01
7.4.50.0080.00714.96
7.4.40.0100.00514.97
7.4.30.0090.00615.06
7.4.20.0040.00913.25
7.4.10.0100.00313.16
7.4.00.0070.00814.13
7.3.330.0060.00013.26
7.3.320.0040.00313.26
7.3.310.0050.00414.76
7.3.300.0080.00314.93
7.3.290.0080.00815.67
7.3.280.0090.00816.13
7.3.270.0090.00715.31
7.3.260.0050.01315.50
7.3.250.0090.00715.74
7.3.240.0120.00415.45
7.3.230.0130.00214.94
7.3.220.0080.00413.30
7.3.210.0030.01214.84
7.3.200.0140.00214.88
7.3.190.0070.00814.97
7.3.180.0120.00314.86
7.3.170.0060.00815.03
7.3.160.0120.00314.97
7.3.150.0110.00013.27
7.3.140.0100.00013.11
7.3.130.0000.00613.29
7.3.120.0130.00013.30
7.3.110.0140.00013.16
7.3.100.0140.00013.26
7.3.90.0120.00013.40
7.3.80.0120.00013.08
7.3.70.0100.00313.22
7.3.60.0040.00813.21
7.3.50.0110.00013.28
7.3.40.0030.00613.25
7.3.30.0080.00613.35
7.3.20.0070.00715.10
7.3.10.0140.00015.17
7.3.00.0160.00015.11
7.2.340.0100.00313.44
7.2.330.0090.00715.22
7.2.320.0100.00615.17
7.2.310.0070.00915.06
7.2.300.0090.00615.14
7.2.290.0050.01115.19
7.2.280.0090.00413.36
7.2.270.0090.00313.34
7.2.260.0120.00013.46
7.2.250.0090.00413.35
7.2.240.0080.00413.39
7.2.230.0100.00313.29
7.2.220.0060.00613.40
7.2.210.0120.00313.31
7.2.200.0110.00413.50
7.2.190.0130.00013.52
7.2.180.0140.00013.52
7.2.170.0140.00013.73
7.2.160.0080.00513.58
7.2.150.0010.01315.36
7.2.140.0110.00415.38
7.2.130.0110.00315.50
7.2.120.0070.00715.52
7.2.110.0110.00315.37
7.2.100.0120.00215.52
7.2.90.0090.00415.38
7.2.80.0070.00516.21
7.2.70.0130.00015.52
7.2.60.0120.00216.40
7.2.50.0090.00415.41
7.2.40.0100.00315.34
7.2.30.0120.00215.47
7.2.20.0120.00315.51
7.2.10.0150.00015.55
7.2.00.0060.00817.56
7.1.330.0110.00314.48
7.1.320.0080.00614.39
7.1.310.0130.00314.39
7.1.300.0110.00314.34
7.1.290.0030.00914.29
7.1.280.0080.00414.27
7.1.270.0060.00614.39
7.1.260.0080.00414.46
7.1.250.0040.00914.37
7.1.240.0110.00014.30
7.1.230.0120.00014.16
7.1.220.0060.00614.43
7.1.210.0060.00714.21
7.1.200.0090.00515.24
7.1.190.0100.00314.42
7.1.180.0000.01314.28
7.1.170.0130.00014.37
7.1.160.0040.00814.34
7.1.150.0090.00414.16
7.1.140.0080.00414.15
7.1.130.0080.00514.29
7.1.120.0130.00014.31
7.1.110.0110.00314.36
7.1.100.0070.00916.24
7.1.90.0100.00514.16
7.1.80.0100.00414.42
7.1.70.0080.00715.88
7.1.60.0120.00415.80
7.1.50.0140.00415.71
7.1.40.0090.00415.74
7.1.30.0120.00315.61
7.1.20.0070.00815.63
7.1.10.0100.00615.63
7.1.00.0110.00315.62
7.0.330.0070.00814.02
7.0.320.0090.00514.20
7.0.310.0110.00414.14
7.0.300.0100.00314.13
7.0.290.0050.00914.25
7.0.280.0090.00614.14
7.0.270.0110.00314.19
7.0.260.0090.00514.02
7.0.250.0110.00314.46
7.0.240.0070.00714.39
7.0.230.0140.00014.29
7.0.220.0110.00414.34
7.0.210.0150.00014.23
7.0.200.0100.00315.66
7.0.190.0090.00715.68
7.0.180.0080.00615.63
7.0.170.0040.00915.59
7.0.160.0100.00315.57
7.0.150.0060.00615.58
7.0.140.0090.00415.50
7.0.130.0090.00415.64
7.0.120.0070.00415.65
7.0.110.0070.01015.53
7.0.100.0040.01115.61
7.0.90.0110.00315.50
7.0.80.0070.00515.59
7.0.70.0070.00515.50
7.0.60.0020.01015.56
7.0.50.0090.00415.53
7.0.40.0070.00615.63
7.0.30.0040.00815.63
7.0.20.0110.00315.50
7.0.10.0050.01015.63
7.0.00.0060.00615.58
5.6.400.0100.00212.77
5.6.390.0110.00212.71
5.6.380.0140.00012.65
5.6.370.0120.00012.76
5.6.360.0090.00512.56
5.6.350.0100.00312.64
5.6.340.0080.00412.91
5.6.330.0090.00412.85
5.6.320.0090.00412.75
5.6.310.0100.00312.56
5.6.300.0110.00212.81
5.6.290.0130.00012.75
5.6.280.0130.00012.80
5.6.270.0070.00512.96
5.6.260.0090.00312.59
5.6.250.0070.00712.65
5.6.240.0100.00312.94
5.6.230.0090.00312.56
5.6.220.0070.00712.79
5.6.210.0100.00312.86
5.6.200.0100.00312.96
5.6.190.0130.00013.01
5.6.180.0060.00612.78
5.6.170.0080.00313.00
5.6.160.0060.00712.84
5.6.150.0000.01112.86
5.6.140.0060.00612.80
5.6.130.0060.00612.64
5.6.120.0100.00312.78
5.6.110.0080.00412.57
5.6.100.0060.00612.69
5.6.90.0040.00812.63
5.6.80.0040.00812.63
5.6.70.0100.00012.92
5.6.60.0040.00712.72
5.6.50.0100.00312.78
5.6.40.0000.01212.87
5.6.30.0120.00012.73
5.6.20.0040.00812.55
5.6.10.0110.00012.66
5.6.00.0060.00612.65

preferences:
34.92 ms | 400 KiB | 5 Q