3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { public function getData() { return array('user_id'=>1); } } $foo->getData()['user_id'];

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.0160.00316.45
7.2.60.0030.01016.79
7.2.00.0100.00319.47
7.1.200.0060.00615.66
7.1.100.0040.01117.93
7.1.70.0000.01016.99
7.1.60.0070.01619.70
7.1.50.0060.01616.51
7.1.00.0070.07322.40
7.0.200.0040.00416.65
7.0.140.0170.06022.12
7.0.60.0070.08319.91
7.0.50.0070.04017.85
7.0.40.0130.04720.25
7.0.30.0170.04320.08
7.0.20.0200.05020.34
7.0.10.0170.04720.10
7.0.00.0100.05720.23
5.6.280.0000.08020.82
5.6.210.0130.08020.47
5.6.200.0030.08718.29
5.6.190.0000.08320.59
5.6.180.0400.06720.64
5.6.170.0170.04020.48
5.6.160.0100.06720.55
5.6.150.0030.08318.21
5.6.140.0070.04318.15
5.6.130.0170.07718.27
5.6.120.0070.05321.02
5.6.110.0030.07720.99
5.6.100.0030.07721.04
5.6.90.0100.08020.97
5.6.80.0030.06720.41
5.6.70.2770.03720.40
5.5.350.0130.07020.32
5.5.340.0030.04318.07
5.5.330.0030.09020.13
5.5.320.0330.07720.30
5.5.310.0270.07720.51
5.5.300.0130.08318.08
5.5.290.0070.04318.01
5.5.280.0130.08020.76
5.5.270.0100.07020.73
5.5.260.0030.09020.84
5.5.250.0000.04320.60
5.5.240.0130.05720.26
5.4.450.0970.04019.55
5.4.440.0300.04719.54
5.4.430.0730.04019.46
5.4.420.0330.04743.92
5.4.410.0530.03343.92
5.4.400.0270.04043.91
5.4.390.0100.04743.90
5.4.380.0130.05318.58
5.4.370.0200.04718.44
5.4.360.0030.06318.68
5.4.350.0130.05318.73
5.4.340.0130.05018.61
5.4.320.0090.04212.50
5.4.310.0060.04412.50
5.4.300.0060.04112.50
5.4.290.0040.04012.49
5.4.280.0020.03912.40
5.4.270.0070.03512.39
5.4.260.0080.03612.39
5.4.250.0070.03712.39
5.4.240.0040.04412.39
5.4.230.0060.03812.39
5.4.220.0080.03812.39
5.4.210.0070.03512.39
5.4.200.0080.03512.39
5.4.190.0050.03812.38
5.4.180.0090.03512.39
5.4.170.0040.03812.39
5.4.160.0070.03912.39
5.4.150.0080.03412.39
5.4.140.0060.04112.07
5.4.130.0080.03912.05
5.4.120.0100.03412.02
5.4.110.0090.03412.01
5.4.100.0050.03912.01
5.4.90.0090.03712.01
5.4.80.0090.03712.01
5.4.70.0060.03512.01
5.4.60.0070.03812.01
5.4.50.0080.03312.00
5.4.40.0090.03412.00
5.4.30.0050.03612.00
5.4.20.0100.03711.99
5.4.10.0070.03511.99
5.4.00.0040.04311.48
5.3.290.0090.04112.80
5.3.280.0090.03612.71
5.3.270.0050.04512.73
5.3.260.0060.03912.72
5.3.250.0080.03612.72
5.3.240.0090.03912.72
5.3.230.0090.03512.70
5.3.220.0080.04512.68
5.3.210.0060.03812.68
5.3.200.0080.03612.68
5.3.190.0050.03912.68
5.3.180.0040.04012.67
5.3.170.0060.03712.67
5.3.160.0070.03612.68
5.3.150.0050.03912.68
5.3.140.0060.03812.66
5.3.130.0070.03912.66
5.3.120.0070.03712.66
5.3.110.0070.03712.66
5.3.100.0080.03512.12
5.3.90.0080.03812.11
5.3.80.0080.03412.10
5.3.70.0070.04012.09
5.3.60.0060.04012.08
5.3.50.0060.03712.02
5.3.40.0090.03412.02
5.3.30.0090.04311.98
5.3.20.0050.04511.76
5.3.10.0090.03211.73
5.3.00.0070.03511.71
5.2.170.0050.0409.22
5.2.160.0060.0299.21
5.2.150.0050.0309.21
5.2.140.0100.0289.21
5.2.130.0040.0309.18
5.2.120.0030.0319.17
5.2.110.0060.0289.18
5.2.100.0050.0289.18
5.2.90.0060.0289.18
5.2.80.0040.0319.17
5.2.70.0070.0299.18
5.2.60.0060.0339.13
5.2.50.0040.0309.10
5.2.40.0080.0259.08
5.2.30.0090.0279.05
5.2.20.0040.0359.04
5.2.10.0050.0308.95
5.2.00.0080.0338.80
5.1.60.0040.0248.09
5.1.50.0070.0278.09
5.1.40.0040.0248.06
5.1.30.0060.0278.42
5.1.20.0020.0288.44
5.1.10.0040.0268.16
5.1.00.0040.0258.17
5.0.50.0040.0206.64
5.0.40.0030.0216.51
5.0.30.0030.0316.31
5.0.20.0020.0206.28
5.0.10.0040.0256.26
5.0.00.0050.0306.25
4.4.90.0060.0184.78
4.4.80.0050.0184.75
4.4.70.0030.0194.76
4.4.60.0040.0184.76
4.4.50.0040.0174.77
4.4.40.0030.0254.71
4.4.30.0040.0144.76
4.4.20.0060.0204.85
4.4.10.0030.0204.84
4.4.00.0010.0304.76
4.3.110.0000.0194.67
4.3.100.0010.0164.66
4.3.90.0040.0134.64
4.3.80.0020.0254.59
4.3.70.0030.0154.63
4.3.60.0040.0134.63
4.3.50.0010.0174.63
4.3.40.0040.0234.54
4.3.30.0050.0133.30
4.3.20.0020.0163.28
4.3.10.0000.0183.23
4.3.00.0100.01343.90