3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $var = (Object)t; $var->foo = 'bar'; var_dump($var);

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.0030.01016.68
7.2.60.0070.00716.50
7.2.00.0000.01219.48
7.1.200.0160.00315.86
7.1.100.0040.00817.94
7.1.70.0060.00316.89
7.1.60.0060.01919.46
7.1.50.0110.00816.78
7.1.00.0070.08722.28
7.0.200.0000.00816.88
7.0.140.0030.07321.95
7.0.110.0270.04019.96
7.0.100.0100.04719.97
7.0.90.0100.07720.06
7.0.80.0070.08319.88
7.0.70.0130.07719.84
7.0.60.0070.05320.00
7.0.50.0200.06720.06
7.0.40.0070.08319.75
7.0.30.0000.07719.75
7.0.20.0100.08019.73
7.0.10.0130.06319.75
7.0.00.0030.05019.64
5.6.280.0000.07720.91
5.6.260.0170.07020.66
5.6.250.0030.07720.55
5.6.240.0070.08020.71
5.6.230.0000.05020.55
5.6.220.0100.04720.62
5.6.210.0100.07320.60
5.6.200.0130.07020.85
5.6.190.0070.08320.64
5.6.180.0100.07720.65
5.6.170.0070.06720.56
5.6.160.0070.04720.65
5.6.150.0000.09320.62
5.6.140.0030.08720.85
5.6.130.0100.07320.61
5.6.120.0100.06320.85
5.6.110.0130.03020.58
5.6.100.0030.04320.60
5.6.90.0100.06720.66
5.6.80.0000.08020.02
5.6.70.0000.09020.06
5.6.60.0070.07020.07
5.6.50.0170.06720.02
5.6.40.0070.08020.06
5.6.30.0130.07020.01
5.6.20.0130.07719.82
5.6.10.0130.07319.96
5.6.00.0030.04720.05
5.5.380.0000.05720.41
5.5.370.0130.08020.37
5.5.360.0070.08020.22
5.5.350.0100.08020.42
5.5.340.0130.05020.94
5.5.330.0000.06720.80
5.5.320.0130.07721.01
5.5.310.0200.06320.86
5.5.300.0070.08020.69
5.5.290.0100.07720.89
5.5.280.0130.07320.80
5.5.270.0030.05020.68
5.5.260.0100.07020.95
5.5.250.0100.08020.82
5.5.240.0030.07020.33
5.5.230.0030.08020.41
5.5.220.0030.07020.30
5.5.210.0070.06320.27
5.5.200.0100.04320.25
5.5.190.0130.07020.24
5.5.180.0130.07020.12
5.5.160.0000.05020.31
5.5.150.0000.06020.28
5.5.140.0230.06320.18
5.5.130.0070.07720.13
5.5.120.0070.07720.36
5.5.110.0130.04020.23
5.5.100.0200.06720.22
5.5.90.0070.07720.13
5.5.80.0130.06320.19
5.5.70.0130.07320.23
5.5.60.0170.06720.13
5.5.50.0200.06720.12
5.5.40.0130.06720.20
5.5.30.0200.06020.14
5.5.20.0070.06320.02
5.5.10.0070.08320.02
5.5.00.0030.08020.04
5.4.450.0070.03719.36
5.4.440.0100.03019.50
5.4.430.0100.05019.34
5.4.420.0030.06719.50
5.4.410.0170.05319.13
5.4.400.0000.03319.20
5.4.390.0070.06719.11
5.4.380.0070.07719.16
5.4.370.0000.05719.27
5.4.360.0100.08019.12
5.4.350.0130.06319.08
5.4.340.0230.06018.95
5.4.320.0070.07019.07
5.4.310.0230.06319.25
5.4.300.0130.07019.00
5.4.290.0100.07318.95
5.4.280.0130.07019.27
5.4.270.0030.07719.27
5.4.260.0030.07019.16
5.4.250.0130.07318.96
5.4.240.0030.08019.09
5.4.230.0200.06318.99
5.4.220.0130.07718.96
5.4.210.0070.07319.26
5.4.200.0000.07319.02
5.4.190.0130.06019.02
5.4.180.0030.08318.94
5.4.170.0100.07018.94
5.4.160.0100.07319.01
5.4.150.0000.05319.10
5.4.140.0000.06016.26
5.4.130.0030.07716.34
5.4.120.0070.07316.25
5.4.110.0070.07316.19
5.4.100.0170.06316.29
5.4.90.0170.06016.29
5.4.80.0000.05716.49
5.4.70.0100.07016.49
5.4.60.0070.07016.28
5.4.50.0130.07016.38
5.4.40.0130.06016.53
5.4.30.0030.07716.35
5.4.20.0100.06316.47
5.4.10.0170.06716.34
5.4.00.0070.08015.64
5.3.290.0130.04714.66
5.3.280.0070.07014.45
5.3.270.0070.04714.54
5.3.260.0070.07714.39
5.3.250.0130.03714.66
5.3.240.0000.08014.43
5.3.230.0130.05014.59
5.3.220.0030.08714.63
5.3.210.0070.08014.49
5.3.200.0070.06014.57
5.3.190.0030.06714.66
5.3.180.0070.04014.55
5.3.170.0100.05714.62
5.3.160.0130.05014.42
5.3.150.0200.06714.42
5.3.140.0070.04714.61
5.3.130.0100.07014.61
5.3.120.0070.08014.48
5.3.110.0100.07014.64
5.3.100.0030.08013.90
5.3.90.0000.07713.95
5.3.80.0100.06713.88
5.3.70.0170.06013.89
5.3.60.0070.04714.03
5.3.50.0100.06714.04
5.3.40.0030.05313.82
5.3.30.0070.04013.73
5.3.20.0130.06713.51
5.3.10.0030.06713.52
5.3.00.0100.06313.71
5.2.170.0030.06012.21
5.2.160.0030.06012.21
5.2.150.0100.05312.21
5.2.140.0100.05712.21
5.2.130.0070.06312.21
5.2.120.0030.05012.21
5.2.110.0030.06312.21
5.2.100.0000.06712.21
5.2.90.0000.04012.21
5.2.80.0100.06012.21
5.2.70.0030.06012.21
5.2.60.0030.06312.21
5.2.50.0030.05712.21
5.2.40.0000.04012.21
5.2.30.0030.06312.21
5.2.20.0030.06312.21
5.2.10.0070.06312.21
5.2.00.0030.06312.21
5.1.60.0070.04712.21
5.1.50.0000.04312.21
5.1.40.0000.05312.21
5.1.30.0030.05312.21
5.1.20.0130.04312.21
5.1.10.0070.03312.21
5.1.00.0100.04712.21
5.0.50.0030.04012.21
5.0.40.0000.04712.21
5.0.30.0030.04312.21
5.0.20.0000.04712.21
5.0.10.0100.03312.21
5.0.00.0030.06012.21
4.4.90.0030.03312.21
4.4.80.0030.03312.21
4.4.70.0030.03312.21
4.4.60.0100.02712.21
4.4.50.0000.03012.21
4.4.40.0030.03312.21
4.4.30.0070.03312.21
4.4.20.0030.03312.21
4.4.10.0030.03712.21
4.4.00.0030.03712.21
4.3.110.0030.03312.21
4.3.100.0000.02012.21
4.3.90.0030.03012.21
4.3.80.0030.04712.21
4.3.70.0070.03012.21
4.3.60.0000.03712.21
4.3.50.0100.02312.21
4.3.40.0030.05012.21
4.3.30.0030.03012.21
4.3.20.0100.03012.21
4.3.10.0000.04012.21
4.3.00.0000.02012.21