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/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $end_jan = strtotime('01/31/14'); $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)
8.3.60.0140.00716.75
8.3.50.0100.00817.50
8.3.40.0110.00418.84
8.3.30.0110.00718.88
8.3.20.0000.00818.77
8.3.10.0030.00520.51
8.3.00.0040.00417.75
8.2.180.0000.01416.88
8.2.170.0090.00622.96
8.2.160.0100.00322.13
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0040.00419.89
8.2.110.0060.01021.01
8.2.100.0080.00417.91
8.2.90.0040.00419.22
8.2.80.0000.00818.04
8.2.70.0030.00717.63
8.2.60.0060.00317.93
8.2.50.0040.00418.07
8.2.40.0090.00018.28
8.2.30.0030.00518.21
8.2.20.0030.00517.86
8.2.10.0060.00317.85
8.2.00.0050.00317.90
8.1.280.0000.01525.92
8.1.270.0050.00223.99
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0030.00623.84
8.1.230.0040.00820.92
8.1.220.0060.00318.77
8.1.210.0050.00318.84
8.1.200.0030.00617.60
8.1.190.0000.00917.54
8.1.180.0060.00318.10
8.1.170.0080.00018.71
8.1.160.0040.00418.85
8.1.150.0000.00818.76
8.1.140.0000.00717.71
8.1.130.0030.00317.87
8.1.120.0040.00417.72
8.1.110.0030.00617.52
8.1.100.0020.00517.67
8.1.90.0080.00017.56
8.1.80.0000.00817.57
8.1.70.0000.00717.68
8.1.60.0040.00417.78
8.1.50.0000.00717.48
8.1.40.0040.00417.55
8.1.30.0040.00417.81
8.1.20.0000.00817.77
8.1.10.0040.00417.66
8.1.00.0050.00317.58
8.0.300.0000.00819.98
8.0.290.0040.00416.88
8.0.280.0030.00318.50
8.0.270.0000.00717.30
8.0.260.0030.00316.91
8.0.250.0000.00717.14
8.0.240.0000.00917.18
8.0.230.0000.00717.14
8.0.220.0030.00317.13
8.0.210.0070.00017.07
8.0.200.0020.00517.16
8.0.190.0040.00417.16
8.0.180.0040.00417.05
8.0.170.0030.00517.18
8.0.160.0040.00417.13
8.0.150.0040.00416.91
8.0.140.0030.00617.07
8.0.130.0030.00313.45
8.0.120.0000.00717.05
8.0.110.0060.00317.11
8.0.100.0040.00416.96
8.0.90.0040.00417.22
8.0.80.0130.00617.11
8.0.70.0030.00517.22
8.0.60.0070.00017.13
8.0.50.0020.00516.99
8.0.30.0080.01117.30
8.0.20.0080.01117.43
8.0.10.0080.00017.18
8.0.00.0140.00816.72
7.4.330.0000.00614.90
7.4.320.0000.00616.67
7.4.300.0000.00616.82
7.4.290.0050.00216.74
7.4.280.0030.00616.74
7.4.270.0050.00316.71
7.4.260.0030.00313.36
7.4.250.0060.00316.73
7.4.240.0080.00016.76
7.4.230.0000.00716.75
7.4.220.0070.01816.77
7.4.210.0110.00616.63
7.4.200.0030.00316.83
7.4.190.0070.00016.52
7.4.160.0090.00616.66
7.4.150.0120.00617.07
7.4.140.0100.00817.30
7.4.130.0100.00616.63
7.4.120.0080.00816.67
7.4.110.0050.01316.64
7.4.100.0100.00716.71
7.4.90.0110.00716.61
7.4.80.0210.00418.80
7.4.70.0150.00416.53
7.4.60.0170.00016.81
7.4.50.0000.00516.58
7.4.40.0090.00622.27
7.4.30.0040.01716.83
7.4.00.0060.01115.08
7.3.330.0000.00613.17
7.3.320.0000.00513.29
7.3.310.0040.00416.50
7.3.300.0000.00716.45
7.3.290.0060.00916.43
7.3.280.0060.01016.39
7.3.270.0100.00717.07
7.3.260.0130.00818.24
7.3.250.0090.01116.44
7.3.240.0100.00716.64
7.3.230.0070.01016.39
7.3.210.0130.00316.71
7.3.200.0150.00619.39
7.3.190.0100.00716.64
7.3.180.0080.00816.73
7.3.170.0110.00816.44
7.3.160.0140.00316.48
7.3.120.0080.00614.98
7.3.110.0150.00014.91
7.3.100.0030.01014.95
7.3.90.0100.00715.05
7.3.80.0090.00614.84
7.3.70.0060.00615.04
7.3.60.0040.00814.71
7.3.50.0070.00714.93
7.3.40.0080.00415.04
7.3.30.0060.00914.98
7.3.20.0060.01216.85
7.3.10.0000.01516.78
7.3.00.0060.00716.76
7.2.330.0030.01316.78
7.2.320.0040.01316.86
7.2.310.0070.01516.87
7.2.300.0060.01216.89
7.2.290.0140.00716.61
7.2.250.0080.01215.25
7.2.240.0030.01615.13
7.2.230.0030.00915.14
7.2.220.0030.00615.43
7.2.210.0040.01515.14
7.2.200.0000.01315.03
7.2.190.0040.01415.21
7.2.180.0030.00915.32
7.2.170.0040.01215.27
7.2.130.0070.00716.96
7.2.120.0030.01017.05
7.2.110.0150.00316.95
7.2.100.0000.00917.06
7.2.90.0040.01116.76
7.2.80.0060.00317.00
7.2.70.0100.00317.11
7.2.60.0000.00816.93
7.2.50.0090.00316.92
7.2.40.0100.00316.80
7.2.30.0070.00417.07
7.2.20.0100.00316.95
7.2.10.0120.00016.93
7.2.00.0090.00418.35
7.1.330.0100.00715.75
7.1.320.0030.00715.69
7.1.310.0070.00716.02
7.1.300.0090.00315.81
7.1.290.0030.00815.94
7.1.280.0000.01315.84
7.1.270.0090.00615.73
7.1.260.0070.00716.02
7.1.250.0030.00615.71
7.1.100.0050.00518.27
7.1.70.0080.00016.99
7.1.60.0150.01119.40
7.1.50.0070.01117.27
7.1.00.0100.05722.44
7.0.200.0000.00817.04
7.0.140.0030.06722.00
7.0.100.0330.07720.00
7.0.90.0370.08020.05
7.0.80.0430.07019.95
7.0.70.0000.06319.88
7.0.60.0070.05319.91
7.0.50.0230.06320.23
7.0.40.0100.06320.11
7.0.30.0070.06320.13
7.0.20.0100.08720.08
7.0.10.0070.08319.99
7.0.00.0130.07320.11
5.6.280.0030.07321.04
5.6.250.0130.07320.63
5.6.240.0030.08720.64
5.6.230.0070.07320.61
5.6.220.0070.08020.58
5.6.210.0070.07720.63
5.6.200.0000.09021.04
5.6.190.0100.05021.08
5.6.180.0070.08020.89
5.6.170.0100.09021.01
5.6.160.0070.07721.10
5.6.150.0000.09321.02
5.6.140.0070.04721.00
5.6.130.0000.07021.03
5.6.120.0100.07021.11
5.6.110.0100.05720.93
5.6.100.0070.04721.02
5.6.90.0000.08720.96
5.6.80.0030.08020.42
5.6.70.0030.07720.34
5.6.60.0100.07020.32
5.6.50.0100.06320.42
5.6.40.0100.07720.42
5.6.30.0170.07320.38
5.6.20.0000.07020.30
5.6.10.0100.03720.40
5.6.00.0000.08020.38
5.5.380.0100.08320.57
5.5.370.0100.07720.36
5.5.360.0130.08320.46
5.5.350.0070.08020.46
5.5.340.0070.07720.81
5.5.330.0070.04320.80
5.5.320.0030.08320.92
5.5.310.0070.08020.88
5.5.300.0030.08720.90
5.5.290.0130.04020.85
5.5.280.0170.05020.88
5.5.270.0030.09020.91
5.5.260.0070.07320.92
5.5.250.0070.03720.55
5.5.240.0070.07720.26
5.5.230.0030.04320.26
5.5.220.0070.06320.22
5.5.210.0030.04020.21
5.5.200.0070.07320.29
5.5.190.0170.06320.27
5.5.180.0030.07320.23
5.5.160.0070.07020.21
5.5.150.0170.07020.23
5.5.140.0070.04320.25
5.5.130.0030.04720.12
5.5.120.0000.05320.15
5.5.110.0000.05020.27
5.5.100.0100.07020.02
5.5.90.0030.08020.07
5.5.80.0000.07720.17
5.5.70.0100.04020.06
5.5.60.0070.04320.05
5.5.50.0070.07320.14
5.5.40.0100.07720.00
5.5.30.0070.08020.05
5.5.20.0130.07320.14
5.5.10.0070.06320.13
5.5.00.0030.08320.00
5.4.450.0030.08019.46
5.4.440.0030.07319.36
5.4.430.0030.08019.34
5.4.420.0100.03319.21
5.4.410.0030.03719.24
5.4.400.0100.07018.90
5.4.390.0130.05719.07
5.4.380.0030.04718.96
5.4.370.0100.06718.87
5.4.360.0030.08018.89
5.4.350.0100.03318.90
5.4.340.0030.08718.97
5.4.320.0070.05718.97
5.4.310.0100.07719.03
5.4.300.0070.04319.04
5.4.290.0000.05719.13
5.4.280.0070.08319.22
5.4.270.0100.07319.13
5.4.260.0100.04019.12
5.4.250.0100.06019.22
5.4.240.0100.06319.11
5.4.230.0200.03319.09
5.4.220.0100.07319.05
5.4.210.0100.07019.09
5.4.200.0000.08018.89
5.4.190.0070.04018.96
5.4.180.0130.03718.79
5.4.170.0000.04718.79
5.4.160.0070.05319.00
5.4.150.0130.04019.05
5.4.140.0070.06316.07
5.4.130.0070.03316.26
5.4.120.0100.03316.36
5.4.110.0070.04716.25
5.4.100.0100.07316.31
5.4.90.0000.04316.29
5.4.80.0100.06316.34
5.4.70.0100.04016.27
5.4.60.0100.04016.39
5.4.50.0000.04016.19
5.4.40.0030.03716.32
5.4.30.0130.02716.19
5.4.20.0070.03016.27
5.4.10.0070.03316.39
5.4.00.0070.02715.45
5.3.290.0100.07014.55
5.3.280.0070.05714.46
5.3.270.0100.07314.52
5.3.260.0100.07014.59
5.3.250.0030.06714.43
5.3.240.0070.06014.61
5.3.230.0070.03714.47
5.3.220.0000.04314.54
5.3.210.0000.05714.54
5.3.200.0000.07314.53
5.3.190.0030.03714.43
5.3.180.0070.07014.41
5.3.170.0030.04014.57
5.3.160.0100.03314.51
5.3.150.0070.04014.52
5.3.140.0000.04014.54
5.3.130.0000.04014.44
5.3.120.0000.03314.51
5.3.110.0000.04714.39
5.3.100.0000.04014.07
5.3.90.0030.03713.98
5.3.80.0070.02713.93
5.3.70.0030.03713.80
5.3.60.0100.03013.76
5.3.50.0030.04013.96
5.3.40.0030.03713.82
5.3.30.0030.03313.78
5.3.20.0000.04013.65
5.3.10.0030.03713.65
5.3.00.0000.03713.63
5.2.170.0000.04012.22
5.2.160.0030.03312.22
5.2.150.0070.02012.22
5.2.140.0070.05712.22
5.2.130.0030.02712.22
5.2.120.0030.02712.22
5.2.110.0070.02312.22
5.2.100.0030.02712.22
5.2.90.0030.03012.22
5.2.80.0000.02712.22
5.2.70.0030.02712.22
5.2.60.0000.03012.22
5.2.50.0070.02712.22
5.2.40.0000.02712.22
5.2.30.0030.02712.22
5.2.20.0070.04012.22
5.2.10.0070.02712.22
5.2.00.0030.02712.22
5.1.60.0070.02712.22
5.1.50.0100.02012.22
5.1.40.0000.03312.22
5.1.30.0030.02312.22
5.1.20.0000.03312.22
5.1.10.0030.02712.22
5.1.00.0030.02312.22
5.0.50.0000.02312.22
5.0.40.0030.01712.22
5.0.30.0000.03312.22
5.0.20.0000.02012.22
5.0.10.0030.02012.22
5.0.00.0030.02712.22
4.4.90.0030.01712.22
4.4.80.0000.01712.22
4.4.70.0000.01712.22
4.4.60.0100.01012.22
4.4.50.0000.01712.22
4.4.40.0000.02012.22
4.4.30.0070.01012.22
4.4.20.0000.01712.22
4.4.10.0030.02312.22
4.4.00.0000.02312.22
4.3.110.0000.02012.22
4.3.100.0030.01312.22
4.3.90.0000.01712.22
4.3.80.0000.02312.22
4.3.70.0000.01712.22
4.3.60.0000.01712.22
4.3.50.0030.01312.22
4.3.40.0000.02312.22
4.3.30.0000.01712.22
4.3.20.0100.02312.22
4.3.10.0000.01712.22
4.3.00.0000.01312.22

preferences:
52.67 ms | 401 KiB | 5 Q