3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTime('2012-07-01'); $interval = new DateInterval('P7D'); $end = new DateTime('2012-07-31'); echo 'Exclude start date' . PHP_EOL; $period = new DatePeriod($start, $interval, $end, DatePeriod::EXCLUDE_START_DATE); foreach ($period as $date) { echo $date->format('Y-m-d') . PHP_EOL; } echo 'Include start date' . PHP_EOL; $period = new DatePeriod($start, $interval, $end); foreach ($period as $date) { echo $date->format('Y-m-d') . PHP_EOL; }

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.1.20.0040.00417.74
8.1.10.0000.00817.71
8.1.00.0000.00817.57
8.0.150.0000.00816.98
8.0.140.0040.00417.06
8.0.130.0030.00313.47
8.0.120.0080.00017.04
8.0.110.0000.00816.91
8.0.100.0060.00317.10
8.0.90.0000.00817.00
8.0.80.0100.00517.00
8.0.70.0030.00617.09
8.0.60.0020.00516.92
8.0.50.0050.00216.93
8.0.30.0200.00017.27
8.0.20.0160.00517.19
8.0.10.0060.00317.25
8.0.00.0090.01016.85
7.4.270.0030.00316.64
7.4.260.0000.00613.30
7.4.250.0000.00816.70
7.4.240.0000.00716.72
7.4.230.0040.00416.71
7.4.220.0020.00516.73
7.4.210.0100.00716.74
7.4.200.0080.00016.83
7.4.130.0140.00516.80
7.4.120.0170.00716.77
7.4.110.0190.00616.57
7.4.100.0120.01216.48
7.4.90.0060.01216.73
7.4.80.0100.01016.53
7.4.70.0090.00916.45
7.4.60.0040.01416.62
7.4.50.0030.01316.48
7.4.40.0120.00416.61
7.4.30.0060.01216.46
7.4.20.0070.01016.46
7.4.10.0130.00316.60
7.4.00.0110.00616.50
7.3.330.0030.00316.43
7.3.320.0070.00013.25
7.3.310.0030.00316.43
7.3.300.0000.00716.47
7.3.290.0080.01016.38
7.3.260.0070.01116.55
7.3.230.0090.00916.35
7.3.220.0070.01616.74
7.3.210.0110.00816.41
7.3.200.0030.01416.34
7.3.190.0040.01416.35
7.3.180.0070.01016.57
7.3.170.0100.00616.24
7.3.160.0070.01016.45
7.3.150.0070.01016.64
7.3.140.0060.01016.90
7.3.130.0100.00716.30
7.3.120.0080.01216.49
7.3.110.0100.00616.66
7.3.100.0030.01316.76
7.3.90.0110.00716.60
7.3.80.0080.00816.28
7.3.70.0140.00316.56
7.3.60.0080.00816.45
7.3.50.0030.01616.57
7.3.40.0070.01416.42
7.3.30.0100.01016.45
7.3.20.0170.00016.48
7.3.10.0110.00616.44
7.3.00.0090.00916.48
7.2.330.0060.01816.93
7.2.320.0000.01716.72
7.2.310.0110.00616.76
7.2.300.0090.00916.75
7.2.290.0070.01016.84
7.2.280.0130.00416.72
7.2.270.0070.01016.90
7.2.260.0030.01416.82
7.2.250.0060.01116.79
7.2.240.0030.01316.95
7.2.230.0070.01016.77
7.2.220.0070.01116.75
7.2.210.0060.01216.59
7.2.200.0090.00916.74
7.2.190.0060.01116.77
7.2.180.0100.01316.82
7.2.170.0150.00616.74
7.2.160.0150.00316.83
7.2.150.0080.00916.82
7.2.140.0160.00716.71
7.2.130.0160.00316.61
7.2.120.0070.01116.88
7.2.110.0090.00916.81
7.2.100.0060.01216.80
7.2.90.0110.00816.71
7.2.80.0300.00316.90
7.2.70.0070.01716.67
7.2.60.0120.01216.74
7.2.50.0060.01216.69
7.2.40.0090.01516.84
7.2.30.0120.00616.92
7.2.20.0060.01216.88
7.2.10.0150.00316.89
7.2.00.0140.00416.78

preferences:
157.57 ms | 455 KiB | 5 Q