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); $dateStr; foreach ($period as $dt) { $dateStr = $dateStr . $dt->format("Y-m")."-01".", "; } echo $dateStr

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)
5.4.320.0050.03812.47
5.4.310.0020.04112.47
5.4.300.0040.03912.47
5.4.290.0080.04212.47
5.4.280.0060.04612.37
5.4.270.0070.04012.37
5.4.260.0080.04212.37
5.4.250.0070.04112.36
5.4.240.0090.03312.37
5.4.230.0090.03312.36
5.4.220.0090.03212.36
5.4.210.0060.04612.36
5.4.200.0040.03912.36
5.4.190.0050.04012.36
5.4.180.0030.03712.36
5.4.170.0080.03712.36
5.4.160.0090.03612.36
5.4.150.0090.04612.35
5.4.140.0080.03812.04
5.4.130.0070.03312.02
5.4.120.0030.03711.99
5.4.110.0030.04111.99
5.4.100.0080.04811.98
5.4.90.0050.04411.99
5.4.80.0090.03911.99
5.4.70.0050.03411.98
5.4.60.0050.03511.98
5.4.50.0060.04411.98
5.4.40.0070.03311.98
5.4.30.0060.03511.97
5.4.20.0050.03711.96
5.4.10.0050.03611.96
5.4.00.0080.03811.46
5.3.290.0040.04112.80
5.3.280.0070.04612.71
5.3.270.0040.04112.73
5.3.260.0070.03712.72
5.3.250.0070.03512.72
5.3.240.0050.04612.72
5.3.230.0070.04212.71
5.3.220.0080.03512.68
5.3.210.0040.04612.68
5.3.200.0050.04812.68
5.3.190.0050.03812.68
5.3.180.0060.03812.68
5.3.170.0060.03612.67
5.3.160.0050.04812.68
5.3.150.0040.03812.68
5.3.140.0070.03912.66
5.3.130.0080.04412.66
5.3.120.0050.04112.66
5.3.110.0070.04612.66
5.3.100.0070.05312.12
5.3.90.0090.03512.08
5.3.80.0100.03212.07
5.3.70.0080.03912.08
5.3.60.0060.03612.06
5.3.50.0060.03612.00
5.3.40.0050.04812.00
5.3.30.0030.03711.95
5.3.20.0110.03011.73
5.3.10.0030.03611.69
5.3.00.0050.03611.69
5.2.170.0060.0299.19
5.2.160.0030.0309.19
5.2.150.0050.0309.18
5.2.140.0040.0319.18
5.2.130.0030.0319.14
5.2.120.0050.0279.14
5.2.110.0040.0299.15
5.2.100.0050.0279.14
5.2.90.0040.0299.14
5.2.80.0040.0329.14
5.2.70.0020.0329.14
5.2.60.0020.0339.10
5.2.50.0060.0349.07
5.2.40.0030.0319.04
5.2.30.0030.0319.02
5.2.20.0050.0299.01
5.2.10.0050.0318.93
5.2.00.0070.0378.79
5.1.60.0070.0288.07
5.1.50.0060.0338.07
5.1.40.0050.0288.05
5.1.30.0030.0278.41
5.1.20.0010.0318.43
5.1.10.0030.0268.15
5.1.00.0020.0278.15
5.0.50.0030.0266.64
5.0.40.0050.0176.49
5.0.30.0060.0286.30
5.0.20.0030.0196.27
5.0.10.0030.0206.25
5.0.00.0040.0396.24
4.4.90.0040.0204.78
4.4.80.0020.0224.75
4.4.70.0040.0204.75
4.4.60.0040.0194.76
4.4.50.0060.0184.77
4.4.40.0030.0314.71
4.4.30.0030.0194.76
4.4.20.0050.0184.84
4.4.10.0020.0214.85
4.4.00.0010.0334.76
4.3.110.0060.0184.67
4.3.100.0020.0224.66
4.3.90.0030.0204.63
4.3.80.0020.0314.58
4.3.70.0020.0214.63
4.3.60.0030.0204.63
4.3.50.0040.0204.63
4.3.40.0040.0304.54
4.3.30.0000.0233.29
4.3.20.0040.0193.27
4.3.10.0030.0193.22
4.3.00.0000.02013.43

preferences:
139.61 ms | 1394 KiB | 7 Q