3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = (new DateTime('2017-01-01'))->modify('first day of this month'); $end = (new DateTime('2017-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") . ","; }

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.0140.00716.71
8.3.50.0100.00718.11
8.3.40.0130.01019.08
8.3.30.0140.00018.96
8.3.20.0040.00420.21
8.3.10.0080.00023.44
8.3.00.0000.00819.81
8.2.180.0100.00718.79
8.2.170.0040.01122.96
8.2.160.0100.00319.16
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00419.43
8.2.120.0030.00526.35
8.2.110.0060.00321.20
8.2.100.0120.00018.03
8.2.90.0040.00418.03
8.2.80.0040.00419.53
8.2.70.0000.00817.88
8.2.60.0080.00018.05
8.2.50.0060.00318.16
8.2.40.0050.00220.52
8.2.30.0050.00521.22
8.2.20.0000.00718.20
8.2.10.0000.00718.29
8.2.00.0040.00418.18
8.1.280.0150.00625.92
8.1.270.0040.00422.19
8.1.260.0040.00426.35
8.1.250.0050.00228.09
8.1.240.0000.01023.91
8.1.230.0090.00321.03
8.1.220.0030.00517.74
8.1.210.0080.00018.92
8.1.200.0030.00617.73
8.1.190.0060.00317.63
8.1.180.0040.00418.10
8.1.170.0050.00318.75
8.1.160.0040.00419.20
8.1.150.0040.00418.91
8.1.140.0000.00719.76
8.1.130.0040.00419.07
8.1.120.0040.00417.79
8.1.110.0000.00817.67
8.1.100.0030.00617.72
8.1.90.0070.00017.77
8.1.80.0040.00417.76
8.1.70.0040.00417.74
8.1.60.0000.00917.68
8.1.50.0030.00517.75
8.1.40.0000.00817.70
8.1.30.0000.00817.79
8.1.20.0040.00417.85
8.1.10.0000.00717.68
8.1.00.0060.00317.70
8.0.300.0040.00420.03
8.0.290.0040.00417.00
8.0.280.0030.00318.55
8.0.270.0000.00717.45
8.0.260.0000.00616.96
8.0.250.0030.00317.21
8.0.240.0000.00717.25
8.0.230.0000.00717.15
8.0.220.0000.00717.15
8.0.210.0040.00317.20
8.0.200.0000.00717.20
8.0.190.0040.00417.11
8.0.180.0000.00717.17
8.0.170.0040.00417.17
8.0.160.0040.00417.26
8.0.150.0050.00317.07
8.0.140.0070.00017.03
8.0.130.0050.00013.48
8.0.120.0030.00517.06
8.0.110.0000.00717.20
8.0.100.0000.00717.14
8.0.90.0000.00717.23
8.0.80.0100.01017.04
8.0.70.0070.00017.03
8.0.60.0000.00717.10
8.0.50.0040.00417.21
8.0.30.0110.00617.31
8.0.20.0090.00917.40
8.0.10.0050.00217.14
8.0.00.0120.00616.91
7.4.330.0000.00515.55
7.4.320.0060.00016.73
7.4.300.0030.00316.72
7.4.290.0110.00016.80
7.4.280.0040.00416.79
7.4.270.0030.00316.85
7.4.260.0070.00016.68
7.4.250.0030.00316.67
7.4.240.0000.00716.80
7.4.230.0040.00416.61
7.4.220.0040.01716.65
7.4.210.0100.01016.65
7.4.200.0030.00316.83
7.4.160.0090.01216.63
7.4.150.0100.01017.40
7.4.140.0130.00717.86
7.4.130.0090.01316.86
7.4.120.0070.01216.77
7.4.110.0070.01116.52
7.4.100.0080.01616.58
7.4.90.0070.01116.72
7.4.80.0070.01019.39
7.4.70.0040.01216.70
7.4.60.0120.00416.80
7.4.50.0100.00716.59
7.4.40.0130.00316.43
7.4.30.0060.00916.75
7.4.00.0080.00814.82
7.3.330.0050.00013.20
7.3.320.0030.00313.26
7.3.310.0030.00316.42
7.3.300.0030.00316.45
7.3.290.0080.01016.51
7.3.280.0090.00816.46
7.3.270.0060.01317.40
7.3.260.0100.01216.61
7.3.250.0080.01116.58
7.3.240.0110.00716.59
7.3.230.0060.01216.48
7.3.210.0060.01216.59
7.3.200.0100.00916.51
7.3.190.0110.00616.37
7.3.180.0100.01416.62
7.3.170.0090.01316.62
7.3.160.0060.01016.75
7.2.330.0070.01016.85
7.2.320.0070.01016.75
7.2.310.0100.00617.07
7.2.300.0100.00616.89
7.2.290.0140.00316.78
7.2.60.0040.01116.97
7.2.00.0060.00919.85
7.1.200.0060.00616.02
7.1.100.0060.00318.07
7.1.70.0030.01617.46
7.1.60.0260.01635.10
7.1.50.0230.02034.95
7.1.40.0260.01634.65
7.1.30.0220.01334.66
7.1.20.0270.00734.72
7.1.10.0060.00916.73
7.1.00.0060.01016.88
7.0.200.0060.01216.92
7.0.190.0060.00916.73
7.0.180.0090.01016.52
7.0.170.0070.01016.63
7.0.160.0080.00816.32
7.0.150.0090.00616.26
7.0.140.0120.00616.43
7.0.130.0120.00316.57
7.0.120.0040.01416.76
7.0.110.0000.01916.35
7.0.100.0130.00616.61
7.0.90.0080.01116.61
7.0.80.0100.00716.68
7.0.70.0020.01516.52
7.0.60.0120.00916.16
7.0.50.0030.01416.42
7.0.40.0110.00816.65
7.0.30.0080.00816.50
7.0.20.0040.01816.43
7.0.10.0160.00416.50
7.0.00.0080.01616.40

preferences:
39.06 ms | 401 KiB | 5 Q