3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dates = array ('24-12-2013', '25-12-2013', '26-12-2014', '27-12-2013'); $start = strtotime('25-12-2013'); $end = strtotime('27-12-2013'); foreach($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).
Note: hhvm uses a JIT which only kicks in after a few runs. Since we run scripts only once, hhvm always runs slower.

VersionSystem time (s)User time (s)Memory (MiB)
7.2.80.0030.01016.76
7.2.60.0100.00717.05
7.2.00.0000.01319.53
7.1.200.0110.00816.09
7.1.100.0030.01018.24
7.1.70.0080.00017.29
7.1.60.0170.00719.17
7.1.50.0000.01117.16
7.1.00.0030.07022.57
7.0.200.0040.01116.91
7.0.140.0030.07022.18
7.0.60.0170.07719.93
7.0.50.0030.08717.63
7.0.40.0100.06320.20
7.0.30.0500.08020.18
7.0.20.0230.07020.09
7.0.10.0200.08320.09
7.0.00.0030.04720.36
5.6.280.0100.06720.86
5.6.210.0100.08720.56
5.6.200.0070.05318.17
5.6.190.0030.04720.27
5.6.180.0300.06720.64
5.6.170.0200.03720.45
5.6.160.0000.04720.52
5.6.150.0200.06318.09
5.6.140.0000.04018.11
5.6.130.0070.04718.21
5.6.120.0100.08720.98
5.6.110.0070.06321.01
5.6.100.0130.06720.97
5.6.90.0030.04321.09
5.6.80.0030.05320.42
5.6.70.4300.04320.52
5.5.350.0170.08020.30
5.5.340.0100.04318.02
5.5.330.0070.08320.36
5.5.320.0300.07020.57
5.5.310.0230.08020.20
5.5.300.0030.04017.91
5.5.290.0070.08018.02
5.5.280.0000.07020.88
5.5.270.0000.04320.76
5.5.260.0000.07020.67
5.5.250.0030.06020.78
5.5.240.0130.07020.23
5.4.450.0130.04319.13
5.4.440.0170.05719.45
5.4.430.0470.04019.57
5.4.420.0200.03719.56
5.4.410.0170.04319.00
5.4.400.0300.04719.14
5.4.390.0230.07319.09
5.4.380.0400.05719.09
5.4.370.0170.03719.25
5.4.360.0200.07318.81
5.4.350.0230.05718.92
5.4.340.0230.04019.16
5.4.320.0200.07319.09
5.4.310.0200.04018.89
5.4.300.0100.05319.10
5.4.290.0200.04319.14
5.4.280.0130.05319.08
5.4.270.0270.06318.80
5.4.260.0170.03718.90
5.4.250.0300.03719.15
5.4.240.0130.04019.15
5.4.230.0270.05719.05
5.4.220.0330.06019.13
5.4.210.0230.04019.08
5.4.200.0130.04019.08
5.4.190.0170.03719.13
5.4.180.0200.04318.87
5.4.170.0130.04019.15
5.4.160.0170.03719.14
5.4.150.0200.07319.22
5.4.140.0130.04716.30
5.4.130.0200.03316.29
5.4.120.0130.03716.36
5.4.110.0170.04716.44
5.4.100.0300.06316.35
5.4.90.0200.06716.11
5.4.80.0270.03316.49
5.4.70.0130.05316.37
5.4.60.0270.06016.19
5.4.50.0170.04316.40
5.4.40.0230.05716.40
5.4.30.0230.04716.28
5.4.20.0170.06716.41
5.4.10.0170.04316.36
5.4.00.0170.03315.59
5.3.290.0230.04014.57
5.3.280.0230.06714.69
5.3.270.0300.04014.62
5.3.260.0130.04714.45
5.3.250.0200.07014.45
5.3.240.0200.07014.51
5.3.230.0270.07014.51
5.3.220.0200.07714.58
5.3.210.0430.06714.61
5.3.200.0200.06714.44
5.3.190.0200.07014.57
5.3.180.0370.04314.61
5.3.170.0130.07314.41
5.3.160.0200.04314.51
5.3.150.0200.07314.42
5.3.140.0170.07314.41
5.3.130.0200.04314.38
5.3.120.0200.07014.65
5.3.110.0200.05314.39
5.3.100.0130.05013.98
5.3.90.0230.05313.96
5.3.80.0370.06714.07
5.3.70.0170.04314.07
5.3.60.0270.06014.09
5.3.50.0170.07013.99
5.3.40.0170.04713.79
5.3.30.0230.07313.77
5.3.20.0270.06313.65
5.3.10.0170.07013.49
5.3.00.0170.04713.48
5.2.170.0230.05310.98
5.2.160.0230.04711.30
5.2.150.0200.03311.00
5.2.140.0200.05711.19
5.2.130.0100.05011.04
5.2.120.0170.04310.95
5.2.110.0100.03311.14
5.2.100.0200.06010.99
5.2.90.0230.04010.95
5.2.80.0230.06011.04
5.2.70.0170.04311.04
5.2.60.0100.06010.91
5.2.50.0170.05711.05
5.2.40.0230.05710.85
5.2.30.0130.04310.88
5.2.20.0170.04711.07
5.2.10.0170.05310.73
5.2.00.0130.04010.63
5.1.60.0170.0409.89
5.1.50.0200.04710.13
5.1.40.0170.04710.11
5.1.30.0100.03310.42
5.1.20.0230.04710.44
5.1.10.0230.04010.09
5.1.00.0130.03010.09
5.0.50.0130.0408.57
5.0.40.0070.0308.43
5.0.30.0070.0608.32
5.0.20.0070.0338.29
5.0.10.0100.0438.16
5.0.00.0070.0408.04
4.4.90.0100.0337.79
4.4.80.0070.0277.79
4.4.70.0030.0237.79
4.4.60.0030.0237.79
4.4.50.0030.0207.79
4.4.40.0030.0277.79
4.4.30.0070.0137.79
4.4.20.0030.0177.79
4.4.10.0030.0177.79
4.4.00.0030.0277.79
4.3.110.0100.0307.79
4.3.100.0070.0137.79
4.3.90.0070.0207.79
4.3.80.0100.0207.79
4.3.70.0130.0277.79
4.3.60.0030.0177.79
4.3.50.0070.0237.79
4.3.40.0070.0337.79
4.3.30.0000.0177.79
4.3.20.0000.0177.79
4.3.10.0000.0207.79
4.3.00.0030.0177.79