3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2010-12-31'); $start->modify('first day of this month'); $end = new DateTime('2012-05-31'); $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") . "<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.5.30.0110.00620.16
8.5.20.0110.00720.17
8.5.10.0090.00719.63
8.5.00.0140.00720.18
8.4.180.0110.01119.80
8.4.170.0030.00723.89
8.4.160.0100.01123.75
8.4.150.0080.00516.79
8.4.140.0100.01117.85
8.4.130.0140.00819.43
8.4.120.0070.00420.48
8.4.110.0110.00819.11
8.4.100.0110.00918.91
8.4.90.0080.01220.46
8.4.80.0050.00319.03
8.4.70.0050.00419.16
8.4.60.0060.00420.57
8.4.50.0060.01118.99
8.4.40.0160.00319.50
8.4.30.0080.00017.70
8.4.20.0140.01017.90
8.4.10.0050.00519.79
8.3.300.0130.01120.95
8.3.290.0120.00820.63
8.3.280.0080.00616.35
8.3.270.0130.00616.79
8.3.260.0100.00916.84
8.3.250.0050.00217.33
8.3.240.0110.00816.73
8.3.230.0080.00916.95
8.3.220.0110.00719.11
8.3.210.0140.00616.67
8.3.200.0050.00316.82
8.3.190.0130.00617.22
8.3.180.0070.00518.96
8.3.170.0190.00018.79
8.3.160.0070.01017.32
8.3.150.0030.01617.04
8.3.140.0060.00319.17
8.3.130.0120.00618.66
8.3.120.0000.00820.65
8.3.110.0090.00018.72
8.3.100.0080.00016.59
8.3.90.0030.00516.61
8.3.80.0040.00418.43
8.3.70.0070.01016.63
8.3.60.0160.00318.31
8.3.50.0100.00923.04
8.3.40.0040.01119.04
8.3.30.0030.01318.64
8.3.20.0040.00421.86
8.3.10.0040.00421.97
8.3.00.0050.00319.98
8.2.300.0110.00918.82
8.2.290.0090.00420.43
8.2.280.0080.01218.66
8.2.270.0070.01316.84
8.2.260.0060.00316.96
8.2.250.0030.00516.84
8.2.240.0030.00617.21
8.2.230.0090.00020.94
8.2.220.0060.00624.06
8.2.210.0050.00326.77
8.2.200.0030.00917.13
8.2.190.0220.00016.88
8.2.180.0130.01018.42
8.2.170.0000.01522.96
8.2.160.0110.00722.25
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0050.00319.89
8.2.120.0000.00826.35
8.2.110.0030.00620.50
8.2.100.0110.00017.97
8.2.90.0040.00419.17
8.2.80.0040.00418.05
8.2.70.0000.00817.88
8.2.60.0040.00417.80
8.2.50.0050.00318.10
8.2.40.0040.00420.73
8.2.30.0070.00019.35
8.2.20.0030.00618.30
8.2.10.0060.00318.20
8.2.00.0000.00717.99
8.1.340.0120.00921.75
8.1.330.0120.00822.02
8.1.320.0140.00616.27
8.1.310.0090.00916.11
8.1.300.0050.00518.05
8.1.290.0080.00018.88
8.1.280.0070.00725.92
8.1.270.0040.00422.20
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00623.96
8.1.230.0110.00017.82
8.1.220.0080.00017.77
8.1.210.0040.00418.77
8.1.200.0060.00317.47
8.1.190.0000.00817.50
8.1.180.0000.00918.10
8.1.170.0000.00818.90
8.1.160.0000.00718.87
8.1.150.0040.00421.98
8.1.140.0060.00319.73
8.1.130.0040.00419.14
8.1.120.0000.00717.64
8.1.110.0040.00417.61
8.1.100.0030.00617.70
8.1.90.0000.00717.78
8.1.80.0000.00817.75
8.1.70.0000.00817.58
8.1.60.0050.00317.79
8.1.50.0080.00017.65
8.1.40.0000.00717.72
8.1.30.0080.00017.88
8.1.20.0060.00317.76
8.1.10.0030.00517.67
8.1.00.0000.00817.84
8.0.300.0020.00518.77
8.0.290.0040.00416.88
8.0.280.0070.00018.59
8.0.270.0030.00317.32
8.0.260.0030.00617.41
8.0.250.0030.00317.11
8.0.240.0000.00717.20
8.0.230.0040.00417.18
8.0.220.0070.00017.10
8.0.210.0000.00717.03
8.0.200.0030.00317.27
8.0.190.0000.00817.29
8.0.180.0030.00617.21
8.0.170.0070.00017.13
8.0.160.0040.00417.15
8.0.150.0090.00017.06
8.0.140.0050.00217.10
8.0.130.0000.00513.55
8.0.120.0000.00717.04
8.0.110.0000.00717.19
8.0.100.0040.00417.16
8.0.90.0070.00017.08
8.0.80.0080.00817.14
8.0.70.0000.00717.00
8.0.60.0040.00417.02
8.0.50.0050.00317.12
8.0.30.0090.00817.33
8.0.20.0110.01017.47
8.0.10.0000.00717.35
8.0.00.0060.01117.02
7.4.330.0000.00715.55
7.4.320.0000.00716.82
7.4.300.0030.00316.70
7.4.290.0030.00516.56
7.4.280.0070.00016.71
7.4.270.0030.00316.80
7.4.260.0030.00316.76
7.4.250.0030.00316.66
7.4.240.0030.00616.86
7.4.230.0050.00216.55
7.4.220.0070.01016.59
7.4.210.0110.00416.66
7.4.200.0040.00416.55
7.4.160.0090.00616.67
7.4.150.0160.00317.40
7.4.140.0090.01017.86
7.4.130.0090.00716.75
7.4.120.0120.00616.63
7.4.110.0100.00716.53
7.4.100.0070.01016.75
7.4.90.0120.01216.75
7.4.80.0100.01319.39
7.4.70.0110.00716.70
7.4.60.0140.00316.60
7.4.50.0110.00416.76
7.4.40.0110.00716.73
7.4.30.0150.00616.48
7.4.10.0060.01615.04
7.4.00.0070.01015.17
7.3.330.0060.00013.21
7.3.320.0060.00013.19
7.3.310.0040.00416.44
7.3.300.0040.00416.41
7.3.290.0070.00016.46
7.3.280.0110.00716.44
7.3.270.0100.00717.40
7.3.260.0140.00716.71
7.3.250.0100.00916.72
7.3.240.0090.01016.65
7.3.230.0120.00816.55
7.3.210.0100.00716.36
7.3.200.0060.01016.57
7.3.190.0030.01316.54
7.3.180.0040.01416.71
7.3.170.0110.00516.64
7.3.160.0160.00016.73
7.3.130.0110.00715.01
7.3.120.0120.00515.21
7.3.110.0080.00815.28
7.3.100.0090.00915.29
7.3.90.0050.01215.17
7.3.80.0040.01015.15
7.3.70.0100.00715.14
7.3.60.0020.01415.04
7.3.50.0080.00815.06
7.3.40.0090.00715.09
7.3.30.0080.01015.20
7.3.20.0050.01117.01
7.3.10.0040.00916.71
7.3.00.0080.00716.93
7.2.330.0070.01016.88
7.2.320.0030.01816.87
7.2.310.0060.01316.97
7.2.300.0090.00916.64
7.2.290.0040.01416.93
7.2.260.0080.00815.30
7.2.250.0060.01315.43
7.2.240.0090.01015.43
7.2.230.0030.01515.41
7.2.220.0030.01215.35
7.2.210.0030.01315.24
7.2.200.0070.00715.30
7.2.190.0030.01115.16
7.2.180.0040.01015.17
7.2.170.0080.01015.36
7.2.160.0040.01415.14
7.2.150.0110.00717.16
7.2.140.0100.00617.13
7.2.130.0070.00917.10
7.2.120.0060.00717.13
7.2.110.0070.00617.04
7.2.100.0130.00416.90
7.2.90.0090.00717.22
7.2.80.0110.00517.01
7.2.70.0100.00717.12
7.2.60.0020.01217.14
7.2.50.0090.00617.08
7.2.40.0060.00917.19
7.2.30.0100.01217.16
7.2.20.0090.00717.11
7.2.10.0080.00817.16
7.2.00.0050.01017.03
7.1.330.0070.01016.00
7.1.320.0030.01616.07
7.1.310.0030.01416.01
7.1.300.0090.00715.79
7.1.290.0050.01216.03
7.1.280.0090.00615.87
7.1.270.0070.00715.91
7.1.260.0020.01215.97
7.1.250.0110.00216.01
7.1.240.0060.00716.11
7.1.230.0090.00516.00
7.1.220.0100.00515.85
7.1.210.0060.00815.82
7.1.200.0080.00315.97
7.1.190.0020.01115.97
7.1.180.0070.00715.84
7.1.170.0020.01215.85
7.1.160.0030.01016.05
7.1.150.0080.00815.73
7.1.140.0020.01015.87
7.1.130.0080.00515.84
7.1.120.0090.00315.96
7.1.110.0020.01315.96
7.1.100.0050.00616.00
7.1.90.0080.00715.87
7.1.80.0030.01015.92
7.1.70.0080.00616.34
7.1.60.0060.00416.50
7.1.50.0050.00715.91
7.1.40.0070.00415.69
7.1.30.0090.00315.98
7.1.20.0020.01116.05
7.1.10.0080.02317.89
7.1.00.0080.02118.08
7.0.330.0060.00615.54
7.0.320.0020.00815.64
7.0.310.0060.00615.22
7.0.300.0020.01115.52
7.0.290.0080.00415.34
7.0.280.0080.00515.23
7.0.270.0060.00815.55
7.0.260.0050.00715.67
7.0.250.0040.00515.50
7.0.240.0020.01115.43
7.0.230.0060.00715.36
7.0.220.0050.00715.55
7.0.210.0060.00715.53
7.0.200.0030.00716.13
7.0.190.0070.00315.52
7.0.180.0050.00615.62
7.0.170.0050.00815.58
7.0.160.0030.00715.59
7.0.150.0100.01917.75
7.0.140.0050.02317.64
7.0.130.0080.01917.58
7.0.120.0080.02217.47
7.0.110.0070.02217.47
7.0.100.0050.02317.60
7.0.90.0090.02117.71
7.0.80.0090.02017.68
7.0.70.0030.02517.73
7.0.60.0080.02817.61
7.0.50.0050.02617.72
7.0.40.0030.02516.28
7.0.30.0080.02316.43
7.0.20.0110.01716.38
7.0.10.0080.02016.37
7.0.00.0070.02216.37
5.6.400.0070.01014.42
5.6.390.0060.00914.76
5.6.380.0080.00614.57
5.6.370.0090.00314.16
5.6.360.0030.00914.62
5.6.350.0060.00914.62
5.6.340.0030.00914.53
5.6.330.0060.00614.03
5.6.320.0000.00914.55
5.6.310.0000.01314.50
5.6.300.0100.00314.59
5.6.290.0070.00714.75
5.6.280.0030.00914.75
5.6.270.0000.01114.62
5.6.260.0080.00614.70
5.6.250.0070.00414.45
5.6.240.0070.00714.29
5.6.230.0080.00614.43
5.6.220.0040.00714.32
5.6.210.0090.00614.56
5.6.200.0120.00014.39
5.6.190.0000.01514.38
5.6.180.0060.00914.43
5.6.170.0000.01314.37
5.6.160.0060.00614.52
5.6.150.0070.00714.25
5.6.140.0070.00714.34
5.6.130.0130.00014.44
5.6.120.0120.00314.65
5.6.110.0060.00314.25
5.6.100.0050.00314.35
5.6.90.0050.00514.72
5.6.80.0090.00614.31
5.6.70.0000.00914.26
5.6.60.0030.01014.36
5.6.50.0070.00414.39
5.6.40.0030.00914.48
5.6.30.0030.00914.24
5.6.20.0070.00714.50
5.6.10.0040.00414.21
5.6.00.0000.01514.20

preferences:
68.6 ms | 1977 KiB | 5 Q