3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = new DateTime('2016-01-10 23:30:59'); $start = new DateTime('saturday this week 15:00'); $end = new DateTime('monday next week 08:00'); $departure = new DateTime('2016-01-11 23:30:59'); echo $now->format('Y-m-d H:i:s'). PHP_EOL;; echo $start->format('Y-m-d H:i:s'). PHP_EOL;; echo $end->format('Y-m-d H:i:s'). PHP_EOL;; if ($now > $start && $now < $end && $departure->diff($now)->hour<= 72) { echo 'Error! Please contact administrator!'; }
based on qkGAB

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.60.0090.00617.09
7.2.00.0100.00319.73
7.1.200.0030.01016.09
7.1.100.0040.01118.05
7.1.70.0000.00917.35
7.1.60.0110.01419.40
7.1.50.0040.00817.26
7.1.00.0030.03322.42
7.0.200.0230.00017.04
7.0.60.0270.07321.77
7.0.50.0070.08717.78
7.0.40.0030.04720.03
7.0.30.0300.05020.18
7.0.20.0230.05320.30
7.0.10.0170.08020.33
7.0.00.0000.08320.20
5.6.210.0100.04020.72
5.6.200.0030.04018.12
5.6.190.0030.04320.61
5.6.180.0130.05020.57
5.6.170.0200.08320.41
5.6.160.0070.08020.48
5.6.150.0070.04018.18
5.6.140.0030.04318.08
5.6.130.0130.07018.16
5.6.120.0070.08321.03
5.6.110.0100.05321.14
5.6.100.0170.08021.11
5.6.90.0070.05020.99
5.6.80.0070.08720.35
5.5.350.0230.08020.37
5.5.340.0070.07317.98
5.5.330.0130.08020.06
5.5.320.0700.05320.27
5.5.310.0200.04320.32
5.5.300.0000.04317.89
5.5.290.0170.07317.91
5.5.280.0270.06020.87
5.5.270.0130.08020.88
5.5.260.0130.08020.81
5.5.250.0200.07020.71
5.5.240.0100.03320.18
5.4.450.1000.05319.59
5.4.440.0900.05019.49
5.4.430.1070.04319.55
5.4.420.0770.05719.19
5.4.410.0870.05019.45
5.4.400.0830.05718.86
5.4.390.0830.05719.17
5.4.380.0730.05319.22
5.4.370.0870.04319.06
5.4.360.0870.04719.13
5.4.350.0800.05019.10
5.4.340.0800.05319.13
5.4.320.0730.06018.85
5.4.310.0830.04719.30
5.4.300.0830.04719.18
5.4.290.0970.05719.05
5.4.280.0830.05019.12
5.4.270.0870.04319.21
5.4.260.0800.05319.21
5.4.250.0770.05318.91
5.4.240.0830.04719.15
5.4.230.0800.05019.25
5.4.220.0870.04319.21
5.4.210.0830.04719.21
5.4.200.0800.05019.09
5.4.190.0770.05719.18
5.4.180.0870.04318.85
5.4.170.0830.04319.22
5.4.160.0900.05319.06
5.4.150.0770.05719.06
5.4.140.0830.04716.34
5.4.130.0700.05716.42
5.4.120.0770.05016.42
5.4.110.0770.05016.52
5.3.290.0930.04014.66
5.3.280.0800.05014.55
5.3.270.0800.05014.39
5.3.260.0730.06014.56
5.3.250.0800.05314.52
5.3.240.0830.04314.54
5.3.230.0700.05714.67
5.3.220.0730.05314.48
5.3.210.0770.05314.57