3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dates = array("2013-12-24 23:59:59","2013-12-25","2014-12-24","2013-12-27"); $start = strtotime('2013-12-25'); $end = strtotime('2013-12-26'); 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"; } }
based on 2hgEG

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.00.0030.00819.55
7.1.100.0070.00718.16
7.1.70.0030.00517.41
7.1.60.0070.01319.46
7.1.50.0100.01017.18
7.1.00.0030.07022.36
7.0.200.0030.00616.97
7.0.140.0030.03322.21
7.0.60.0070.08021.72
7.0.50.0130.07017.91
7.0.40.0170.06319.95
7.0.30.0330.07320.25
7.0.20.0200.04720.01
7.0.10.0130.07320.30
7.0.00.0070.09020.12
5.6.280.0030.07321.13
5.6.210.0100.07720.69
5.6.200.0070.06718.17
5.6.190.0030.07720.57
5.6.180.0430.07320.67
5.6.170.0400.07020.50
5.6.160.0030.04020.38
5.6.150.0070.03718.22
5.6.140.0030.04318.09
5.6.130.0070.04718.09
5.6.120.0000.04321.14
5.6.110.0100.07720.98
5.6.100.0130.08020.95
5.6.90.0030.08321.09
5.6.80.0130.07320.39
5.5.350.3930.04020.46
5.5.340.0100.03318.00
5.5.330.0100.07320.25
5.5.320.1370.06320.31
5.5.310.0370.07020.54
5.5.300.0100.07717.91
5.5.290.0130.07717.91
5.5.280.0070.06020.80
5.5.270.0030.08720.74
5.5.260.0100.07020.86
5.5.250.0100.07720.68
5.5.240.0230.06020.36
5.4.450.0070.06719.28
5.4.440.0870.06319.13
5.4.430.0070.05719.51
5.4.420.0130.05319.32
5.4.410.0070.06019.19
5.4.400.0100.05319.38
5.4.390.0270.05018.57
5.4.380.0300.07318.57
5.4.370.0200.08018.49
5.4.360.0270.05718.68
5.4.350.0300.05018.68
5.4.340.0230.05318.73
5.4.320.0130.06718.73
5.4.310.0270.05018.57
5.4.300.0230.05718.63
5.4.290.0200.05318.68
5.4.280.0300.06018.62
5.4.270.0270.05018.62
5.4.260.0270.05018.69
5.4.250.0330.04718.56
5.4.240.0230.05718.68
5.4.230.0200.05318.57
5.4.220.0130.06318.48
5.4.210.0230.05318.70
5.4.200.0270.04716.50
5.4.190.0270.05018.65
5.4.180.0270.05018.75
5.4.170.0170.06318.66
5.4.160.0200.05318.46
5.4.150.0270.05018.55
5.4.140.0270.05016.26
5.4.130.0230.05016.20
5.4.120.0200.05716.09
5.4.110.0330.04316.30
5.4.100.0200.05316.23
5.4.90.0300.05016.14
5.4.80.0200.05016.15
5.4.70.0270.06316.13
5.4.60.0170.05016.12
5.4.50.0330.04716.01
5.4.40.0100.06016.13
5.4.30.0270.05016.02
5.4.20.0300.04316.25
5.4.10.0170.05716.03
5.4.00.0170.06015.80
5.3.290.0270.05014.64
5.3.280.0300.05014.69
5.3.270.0300.05314.68
5.3.260.0270.05714.52
5.3.250.0230.05314.54
5.3.240.0230.06014.61
5.3.230.0200.05314.57
5.3.220.0170.05714.55
5.3.210.0200.05714.66
5.3.200.0230.05714.55
5.3.190.0200.06014.56
5.3.180.0200.06014.57
5.3.170.0300.06314.46
5.3.160.0170.05714.63
5.3.150.0300.04714.63
5.3.140.0200.05314.47
5.3.130.0230.05314.51
5.3.120.0170.05714.54
5.3.110.0230.06714.49
5.3.100.0200.05313.94
5.3.90.0170.05313.95
5.3.80.0270.05013.97
5.3.70.0230.05013.91
5.3.60.0270.04713.96
5.3.50.0270.06713.93
5.3.40.0200.06713.95
5.3.30.0230.04713.82
5.3.20.0200.05713.72
5.3.10.0330.05013.63
5.3.00.0200.05713.71
5.2.170.0270.05311.11
5.2.160.0130.05311.20
5.2.150.0170.04311.29
5.2.140.0170.05011.18
5.2.130.0130.04711.11
5.2.120.0170.04711.08
5.2.110.0100.05311.15
5.2.100.0230.05011.04
5.2.90.0170.04711.14
5.2.80.0170.04711.03
5.2.70.0230.04011.08
5.2.60.0130.04711.04
5.2.50.0130.05010.95
5.2.40.0270.04011.14
5.2.30.0170.04310.94
5.2.20.0030.05010.93
5.2.10.0100.04710.92
5.2.00.0100.04710.82
5.1.60.0130.03310.16
5.1.50.0200.03010.05
5.1.40.0170.03710.09
5.1.30.0170.03310.43
5.1.20.0170.03310.42
5.1.10.0100.04010.20
5.1.00.0100.04310.10
5.0.50.0170.0208.63
5.0.40.0130.0278.46
5.0.30.0130.0478.25
5.0.20.0070.0308.23
5.0.10.0100.0278.32
5.0.00.0130.0508.17
4.4.90.0100.0235.93
4.4.80.0070.0235.93
4.4.70.0130.0205.89
4.4.60.0270.0235.89
4.4.50.0070.0275.90
4.4.40.0070.0475.89
4.4.30.0130.0305.91
4.4.20.0130.0205.97
4.4.10.0130.0305.98
4.4.00.0070.0435.97
4.3.110.0100.0205.84
4.3.100.0070.0205.82
4.3.90.0130.0205.94
4.3.80.0100.0335.79
4.3.70.0100.0305.80
4.3.60.0100.0205.87
4.3.50.0030.0275.83
4.3.40.0070.0375.77
4.3.30.0070.0204.61
4.3.20.0070.0204.65
4.3.10.0030.0234.53
4.3.00.0070.0208.36