3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Foo { class A { } } namespace Bar { use Foo\A; class B extends A { } } namespace { use Foo\A; use Bar\B; $a = new A(); var_dump($a); $b = new B(); var_dump($b); }

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.0070.00716.63
7.2.00.0000.00918.95
7.1.200.0000.01515.71
7.1.100.0100.00617.96
7.1.70.0030.00617.09
7.1.60.0100.01419.70
7.1.50.0170.01734.83
7.1.00.0030.07722.28
7.0.200.0000.00716.70
7.0.140.0070.07021.95
7.0.60.0170.08320.03
7.0.50.0030.07717.97
7.0.40.0230.07020.24
7.0.30.0500.04020.24
7.0.20.0170.04320.23
7.0.10.0300.05720.10
7.0.00.0030.04720.15
5.6.280.0070.07021.15
5.6.210.0100.05720.63
5.6.200.0030.04318.19
5.6.190.0130.06020.45
5.6.180.0330.07320.46
5.6.170.0230.05320.46
5.6.160.0030.08720.48
5.6.150.0030.08318.16
5.6.140.0070.03718.21
5.6.130.0100.03318.20
5.6.120.0030.06321.04
5.6.110.0000.04320.99
5.6.100.0100.08021.08
5.6.90.0100.03720.87
5.6.80.0070.08020.28
5.6.70.0070.04020.38
5.5.350.0130.06720.48
5.5.340.0070.04717.94
5.5.330.0170.07320.43
5.5.320.0200.07720.38
5.5.310.0200.03720.36
5.5.300.0030.05318.09
5.5.290.0100.07717.98
5.5.280.0070.08320.88
5.5.270.0000.04320.67
5.5.260.0100.08020.75
5.5.250.0130.07020.61
5.5.240.0030.06020.15
5.4.450.0700.06019.22
5.4.440.0170.05719.58
5.4.430.0200.07319.34
5.4.420.0630.00019.63
5.4.410.0100.06319.04
5.4.400.0230.06018.67
5.4.390.0230.05318.56
5.4.380.0200.05718.59
5.4.370.0130.04718.57
5.4.360.0170.04718.46
5.4.350.0050.05212.02
5.4.340.0080.03812.01
5.4.320.0070.04012.50
5.4.310.0040.04012.49
5.4.300.0060.03812.50
5.4.290.0080.03612.49
5.4.280.0040.03712.39
5.4.270.0060.03612.39
5.4.260.0050.03812.39
5.4.250.0040.03912.39
5.4.240.0120.03612.39
5.4.230.0070.03912.39
5.4.220.0100.03812.38
5.4.210.0070.03512.38
5.4.200.0050.03912.38
5.4.190.0070.03612.38
5.4.180.0080.04712.38
5.4.170.0060.03612.39
5.4.160.0090.03312.39
5.4.150.0070.03512.39
5.4.140.0030.04112.07
5.4.130.0070.03412.05
5.4.120.0060.03612.01
5.4.110.0050.03612.00
5.4.100.0070.03412.01
5.4.90.0060.03712.01
5.4.80.0060.04012.01
5.4.70.0050.03512.00
5.4.60.0070.03312.01
5.4.50.0040.03712.01
5.4.40.0070.03512.00
5.4.30.0050.03611.99
5.4.20.0060.03411.99
5.4.10.0070.03311.99
5.4.00.0060.03711.47
5.3.290.0060.04312.80
5.3.280.0100.03512.71
5.3.270.0060.04112.73
5.3.260.0060.04112.72
5.3.250.0100.03612.72
5.3.240.0080.03912.72
5.3.230.0040.04012.71
5.3.220.0100.03312.68
5.3.210.0060.03812.68
5.3.200.0090.03412.68
5.3.190.0080.03612.68
5.3.180.0070.03712.67
5.3.170.0090.03512.67
5.3.160.0030.04012.67
5.3.150.0100.03412.68
5.3.140.0090.03412.66
5.3.130.0050.04212.66
5.3.120.0110.03812.66
5.3.110.0080.03712.65
5.3.100.0070.03612.12
5.3.90.0050.03712.09
5.3.80.0060.03512.09
5.3.70.0100.04112.08
5.3.60.0060.04112.07
5.3.50.0080.03412.02
5.3.40.0110.04412.02
5.3.30.0060.05111.98
5.3.20.0080.04711.76
5.3.10.0080.04711.72
5.3.00.0080.03811.71
5.2.170.0050.0379.18
5.2.160.0020.0329.18
5.2.150.0080.0319.18
5.2.140.0060.0299.18
5.2.130.0070.0289.14
5.2.120.0020.0319.14
5.2.110.0060.0279.14
5.2.100.0050.0279.14
5.2.90.0030.0319.14
5.2.80.0050.0299.14
5.2.70.0040.0309.14
5.2.60.0050.0309.09
5.2.50.0070.0289.06
5.2.40.0080.0289.04
5.2.30.0070.0299.01
5.2.20.0040.0329.01
5.2.10.0060.0298.93
5.2.00.0080.0268.78
5.1.60.0040.0288.07
5.1.50.0030.0258.06
5.1.40.0040.0268.05
5.1.30.0100.0268.40
5.1.20.0060.0248.42
5.1.10.0020.0278.14
5.1.00.0020.0278.14
5.0.50.0040.0206.62
5.0.40.0030.0226.48
5.0.30.0020.0356.29
5.0.20.0060.0226.26
5.0.10.0030.0296.24
5.0.00.0050.0296.23
4.4.90.0040.0144.78
4.4.80.0040.0144.75
4.4.70.0030.0164.75
4.4.60.0030.0164.75
4.4.50.0020.0164.77
4.4.40.0040.0244.70
4.4.30.0060.0154.76
4.4.20.0020.0164.85
4.4.10.0020.0164.85
4.4.00.0030.0284.76
4.3.110.0050.0174.67
4.3.100.0020.0194.66
4.3.90.0000.0204.63
4.3.80.0030.0324.59
4.3.70.0020.0164.63
4.3.60.0030.0144.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0050.0133.29
4.3.20.0040.0193.26
4.3.10.0080.0213.22
4.3.00.0030.0206.62