3v4l.org

run code in 300+ PHP versions simultaneously
<?php $currentDate = date('m/d/Y'); $currentDate = date('m/d/Y'); $start = strtotime('01/12/14'); $end = strtotime('02/12/14'); $end_jan = strtotime('01/31/Y); $current = strtotime($currentDate); $timestamp = strtotime($currentDate); if($timestamp >= $current && $timestamp <= $end_jan) { echo $currentDate; echo "The date $currentDate is in January"; } else { echo " timestamp is $timestamp"; echo "start is $start"; echo "end is $end "; echo "The date $currentDate 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.0100.04212.38
5.4.230.0130.04112.37
5.4.220.0200.04912.37
5.4.210.0120.04112.37
5.4.200.0140.04012.37
5.4.190.0130.04612.37
5.4.180.0160.04812.37
5.4.170.0120.05012.38
5.4.160.0110.04912.37
5.4.150.0100.04712.36
5.4.140.0110.04712.06
5.4.130.0200.05212.04
5.4.120.0150.04612.00
5.4.110.0150.04512.00
5.4.100.0120.04612.00
5.4.90.0290.07812.00
5.4.80.0120.04312.00
5.4.70.0150.04312.00
5.4.60.0130.04711.99
5.4.50.0100.04011.99
5.4.40.0150.03411.98
5.4.30.0150.05011.98
5.4.20.0110.04511.97
5.4.10.0120.04211.98
5.4.00.0090.04611.47
5.3.280.0120.04612.71
5.3.270.0140.05212.72
5.3.260.0130.05412.72
5.3.250.0220.06812.72
5.3.240.0130.04712.72
5.3.230.0120.04612.71
5.3.220.0120.04712.68
5.3.210.0130.05012.68
5.3.200.0160.05812.68
5.3.190.0120.04612.68
5.3.180.0130.04512.67
5.3.170.0100.04912.67
5.3.160.0120.04212.67
5.3.150.0160.04112.67
5.3.140.0140.04612.66
5.3.130.0120.05012.66
5.3.120.0200.05812.66
5.3.110.0200.06512.66
5.3.100.0120.04612.12
5.3.90.0110.04812.08
5.3.80.0110.04912.07
5.3.70.0130.04512.07
5.3.60.0130.04512.06
5.3.50.0130.04512.00
5.3.40.0120.04812.00
5.3.30.0090.04811.94
5.3.20.0130.04311.71
5.3.10.0090.04711.68
5.3.00.0100.04311.66

preferences:
132.81 ms | 1398 KiB | 7 Q