3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $local = new DateTimeZone('America/Los_Angeles'); $totSecs = $local->getOffset(new DateTime()); $hrs = floor($totSecs / (60 * 60)); $mins = floor(($totSecs - $hrs * 60 * 60) / 60); echo $hrs . ':' . $mins;

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.0100.00317.17
7.2.00.0030.00719.76
7.1.200.0000.01316.18
7.1.100.0030.01018.34
7.1.70.0030.00517.45
7.1.60.0000.02419.40
7.1.50.0060.01916.88
7.1.00.0030.03322.41
7.0.200.0030.00717.02
7.0.140.0070.07022.09
7.0.60.0100.07019.90
7.0.50.0070.05017.67
7.0.40.0170.04020.20
7.0.30.0230.04320.02
7.0.20.0330.03720.16
7.0.10.0300.08720.18
7.0.00.0100.06720.13
5.6.280.0070.07021.09
5.6.210.0130.07320.72
5.6.200.0070.03718.18
5.6.190.0030.04320.57
5.6.180.3170.04020.45
5.6.170.0200.06320.41
5.6.160.0000.10020.50
5.6.150.0100.07718.14
5.6.140.0170.06018.21
5.6.130.0100.05018.23
5.6.120.0130.08020.96
5.6.110.0130.07320.88
5.6.100.0170.07320.96
5.6.90.0230.07321.00
5.6.80.0000.07020.37
5.6.70.0130.06720.34
5.5.350.0170.08020.34
5.5.340.0100.08017.96
5.5.330.0000.08720.44
5.5.320.0170.05020.18
5.5.310.0270.04720.21
5.5.300.0130.07318.00
5.5.290.0070.08017.98
5.5.280.0000.05720.74
5.5.270.0030.06020.75
5.5.260.0000.04320.86
5.5.250.0130.04320.68
5.5.240.0070.08320.15
5.4.450.0300.04319.46
5.4.440.0170.05319.14
5.4.430.0300.04019.52
5.4.420.0170.08019.13
5.4.410.0030.06719.00
5.4.400.0730.05718.67
5.4.390.1330.05318.46
5.4.380.0370.05718.69
5.4.370.0170.05018.62
5.4.360.0130.05018.70
5.4.350.0090.04011.98
5.4.340.0030.04111.97
5.4.320.0060.03712.46
5.4.310.0040.04012.46
5.4.300.0070.04512.46
5.4.290.0110.04112.45
5.4.280.0090.03612.36
5.4.270.0070.04012.35
5.4.260.0090.05212.36
5.4.250.0070.05018.64
5.4.240.0200.04318.87
5.4.230.0070.05318.79
5.4.220.0070.05318.69
5.4.210.0070.05318.79
5.4.200.0170.06019.00
5.4.190.0170.04318.78
5.4.180.0130.04718.82
5.4.170.0070.05318.77
5.4.160.0100.05018.99
5.4.150.0070.05718.84
5.4.140.0230.04016.24
5.4.130.0070.04716.45
5.4.120.0130.06316.53
5.4.110.0070.05016.27
5.4.100.0130.04716.52
5.4.90.0100.04716.55
5.4.80.0070.06316.33
5.4.70.0170.04316.28
5.4.60.0070.05016.39
5.4.50.0100.04316.41
5.4.40.0070.04716.36
5.4.30.0070.05016.33
5.4.20.0230.03716.17
5.4.10.0230.06016.37
5.4.00.0100.05315.75
5.3.290.0120.04312.80
5.3.280.0070.05314.60
5.3.270.0200.05014.62
5.3.260.0100.07314.70
5.3.250.0100.04714.75
5.3.240.0130.04314.62
5.3.230.0130.04314.46
5.3.220.0100.05014.48
5.3.210.0070.07314.57
5.3.200.0030.05014.60
5.3.190.0170.04714.45
5.3.180.0130.04714.57
5.3.170.0130.04314.40
5.3.160.0130.04014.33
5.3.150.0030.05014.57
5.3.140.0100.07014.25
5.3.130.0200.04014.38
5.3.120.0100.05014.46
5.3.110.0070.05714.54
5.3.100.0200.04014.13
5.3.90.0130.04314.03
5.3.80.0130.04713.79
5.3.70.0070.05314.02
5.3.60.0130.04714.09
5.3.50.0100.05013.96
5.3.40.0100.05013.78
5.3.30.0130.04714.00
5.3.20.0070.04713.63
5.3.10.0030.05013.44
5.3.00.0070.04713.79
5.2.170.0170.04011.17
5.2.160.0030.04011.25
5.2.150.0070.06011.13
5.2.140.0000.04311.07
5.2.130.0000.04311.20
5.2.120.0030.05011.09
5.2.110.0030.04011.12
5.2.100.0130.04711.12
5.2.90.0070.05311.09
5.2.80.0030.05011.09
5.2.70.0100.03711.09
5.2.60.0070.04011.14
5.2.50.0030.04310.78
5.2.40.0000.04011.11
5.2.30.0070.04010.73
5.2.20.0030.04010.96
5.2.10.0100.03310.82
5.2.00.0100.05310.61
5.1.60.0030.0339.90
5.1.50.0030.0339.84
5.1.40.0070.0309.88
5.1.30.0000.03710.31
5.1.20.0070.03310.32
5.1.10.0100.03010.00
5.1.00.0100.02710.26
5.0.50.0070.0278.41
5.0.40.0200.0138.66
5.0.30.0030.0408.28
5.0.20.0030.0238.22
5.0.10.0070.0238.22
5.0.00.0100.0338.12
4.4.90.0030.0237.47
4.4.80.0000.0237.47
4.4.70.0030.0207.47
4.4.60.0000.0237.47
4.4.50.0030.0237.47
4.4.40.0030.0307.47
4.4.30.0000.0337.47
4.4.20.0000.0237.47
4.4.10.0000.0237.47
4.4.00.0000.0377.47
4.3.110.0000.0307.47
4.3.100.0000.0207.47
4.3.90.0000.0207.47
4.3.80.0000.0337.47
4.3.70.0030.0207.47
4.3.60.0030.0207.47
4.3.50.0030.0207.47
4.3.40.0030.0307.47
4.3.30.0070.0137.47
4.3.20.0070.0177.47
4.3.10.0030.0207.47
4.3.00.0030.0276.81