3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = date('Y-m-d'); $start = strtotime('2013-12-25'); $end = strtotime('2013-12-26'); for($dates AS $date) { $timestamp = strtotime($date); if($timestamp >= $start && $timestamp <= $end) { echo "The date $date is within our date range\n"; } else { echo "The date $date is NOT within our date range\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)
5.4.240.0150.03612.38
5.4.230.0140.04612.37
5.4.220.0130.04312.37
5.4.210.0150.03812.37
5.4.200.0140.04612.37
5.4.190.0100.04712.37
5.4.180.0120.03912.37
5.4.170.0130.04112.37
5.4.160.0120.04712.37
5.4.150.0100.04212.37
5.4.140.0200.06512.06
5.4.130.0150.03812.04
5.4.120.0160.04512.00
5.4.110.0130.04012.00
5.4.100.0120.04112.00
5.4.90.0130.04512.00
5.4.80.0250.05912.00
5.4.70.0130.03811.99
5.4.60.0130.04511.99
5.4.50.0110.05012.00
5.4.40.0150.04311.98
5.4.30.0130.04911.98
5.4.20.0130.04311.98
5.4.10.0140.04211.98
5.4.00.0130.04511.47
5.3.280.0180.06212.71
5.3.270.0150.04612.72
5.3.260.0110.04312.72
5.3.250.0120.04312.72
5.3.240.0130.05412.72
5.3.230.0210.06712.71
5.3.220.0140.04612.68
5.3.210.0180.06912.68
5.3.200.0130.04312.68
5.3.190.0140.05612.68
5.3.180.0150.04712.67
5.3.170.0140.04112.67
5.3.160.0100.04312.68
5.3.150.0110.04312.67
5.3.140.0110.04112.66
5.3.130.0140.04312.66
5.3.120.0130.04712.66
5.3.110.0120.04812.66
5.3.100.0130.04912.12
5.3.90.0190.05412.08
5.3.80.0100.04612.07
5.3.70.0140.04612.08
5.3.60.0160.04312.06
5.3.50.0110.04712.00
5.3.40.0160.04312.00
5.3.30.0130.04611.94
5.3.20.0130.03911.71
5.3.10.0160.04311.68
5.3.00.0190.06411.67

preferences:
135.79 ms | 1394 KiB | 7 Q