3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = (object)['foo' => 'bar']; var_dump($t->foo); $t = (object)['foo']; $a=(array) $t; $t->{'1'} = 'bar'; var_dump($t->{0}, $t{1}, $a[0]);

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.07
7.2.00.0060.00619.41
7.1.200.0070.00515.54
7.1.100.0000.01318.14
7.1.70.0050.00517.18
7.1.60.0090.00319.70
7.1.50.0120.01217.11
7.1.00.0030.07722.54
7.0.200.0140.00716.60
7.0.140.0130.06322.07
7.0.60.0100.06320.04
7.0.50.0100.08317.89
7.0.40.0070.04020.24
7.0.30.0270.08020.02
7.0.20.0230.08020.33
7.0.10.0070.04020.21
7.0.00.0100.07320.33
5.6.280.0100.06721.02
5.6.210.0030.04320.76
5.6.200.0030.08718.13
5.6.190.0130.03720.48
5.6.180.3670.03320.46
5.6.170.0400.07720.49
5.6.160.0070.05020.48
5.6.150.0130.08018.23
5.6.140.0070.04718.11
5.6.130.0070.04018.16
5.6.120.0100.08021.01
5.6.110.0070.08720.99
5.6.100.0070.08721.13
5.6.90.0070.08020.95
5.6.80.0070.08320.41
5.6.70.4500.04320.38
5.5.350.0000.08020.46
5.5.340.0030.04017.92
5.5.330.0030.08720.57
5.5.320.0300.07720.26
5.5.310.0270.04320.21
5.5.300.0030.03717.95
5.5.290.0100.03717.91
5.5.280.0070.03720.84
5.5.270.0130.08320.68
5.5.260.0170.07320.86
5.5.250.0070.05320.58
5.5.240.0270.07320.18
5.4.450.0170.05728.28
5.4.440.0270.03328.28
5.4.430.0400.04026.89
5.4.420.0400.04026.16
5.4.410.0400.03026.14
5.4.400.0270.04026.13
5.4.390.0270.03326.13
5.4.380.0170.05018.59
5.4.370.0070.05718.73
5.4.360.0130.05318.48
5.4.350.0170.05018.49
5.4.340.0130.05018.56
5.4.320.0070.04412.46
5.4.310.0070.03912.45
5.4.300.0080.05212.46
5.4.290.0120.05212.45
5.4.280.0080.04712.35
5.4.270.0100.04912.35
5.4.260.0040.04312.35
5.4.250.0020.04512.35
5.4.240.0090.04212.35
5.4.230.0180.05212.34
5.4.220.0080.05412.34
5.4.210.0090.05112.34
5.4.200.0070.05512.34
5.4.190.0140.04012.34
5.4.180.0120.04412.34
5.4.170.0090.04512.35
5.4.160.0100.04212.34
5.4.150.0080.04412.34
5.4.140.0120.04112.02
5.4.130.0110.04412.02
5.4.120.0110.05611.98
5.4.110.0140.05511.97
5.4.100.0170.04411.96
5.4.90.0070.05011.97
5.4.80.0090.05311.97
5.4.70.0060.04311.96
5.4.60.0020.04711.96
5.4.50.0080.04111.96
5.4.40.0060.05011.95
5.4.30.0130.04311.95
5.4.20.0110.06411.95
5.4.10.0080.05211.95
5.4.00.0060.05111.44
5.3.290.0110.04012.80
5.3.280.0120.07012.71
5.3.270.0100.07012.73
5.3.260.0080.05112.72
5.3.250.0150.06412.71
5.3.240.0220.08312.71
5.3.230.0130.05812.70
5.3.220.0100.06512.68
5.3.210.0100.05412.68
5.3.200.0150.05312.68
5.3.190.0080.05612.68
5.3.180.0090.05712.67
5.3.170.0230.08612.67
5.3.160.0100.06412.67
5.3.150.0180.11812.67
5.3.140.0130.06012.66
5.3.130.0080.09012.66
5.3.120.0050.06412.66
5.3.110.0150.06612.66
5.3.100.0140.07612.12
5.3.90.0110.07012.08
5.3.80.0140.06912.08
5.3.70.0100.04212.07
5.3.60.0070.06412.07
5.3.50.0140.09112.00
5.3.40.0150.04412.00
5.3.30.0080.05611.95
5.3.20.0070.04911.72
5.3.10.0070.06411.70
5.3.00.0060.05511.68
5.2.170.0050.0369.18
5.2.160.0070.0389.18
5.2.150.0080.0419.18
5.2.140.0080.0639.18
5.2.130.0150.0689.14
5.2.120.0140.0609.14
5.2.110.0080.0499.14
5.2.100.0130.0409.14
5.2.90.0230.0879.14
5.2.80.0110.0629.14
5.2.70.0110.0299.14
5.2.60.0070.0379.09
5.2.50.0070.0379.05
5.2.40.0070.0469.04
5.2.30.0140.0529.02
5.2.20.0090.0309.00
5.2.10.0040.0388.92
5.2.00.0060.0308.78
5.1.60.0110.0438.07
5.1.50.0110.0388.07
5.1.40.0080.0358.05
5.1.30.0130.0738.40
5.1.20.0080.0278.42
5.1.10.0060.0318.14
5.1.00.0080.0418.14
5.0.50.0030.0246.62
5.0.40.0050.0206.48
5.0.30.0060.0376.29
5.0.20.0060.0346.27
5.0.10.0160.0566.24
5.0.00.0050.0386.23
4.4.90.0020.0194.77
4.4.80.0060.0284.76
4.4.70.0080.0244.76
4.4.60.0040.0264.75
4.4.50.0070.0414.77
4.4.40.0060.0514.71
4.4.30.0030.0204.76
4.4.20.0030.0204.84
4.4.10.0060.0194.85
4.4.00.0020.0334.76
4.3.110.0060.0194.67
4.3.100.0020.0234.67
4.3.90.0040.0204.63
4.3.80.0040.0324.59
4.3.70.0050.0204.63
4.3.60.0140.0474.63
4.3.50.0050.0224.63
4.3.40.0030.0414.54
4.3.30.0020.0243.29
4.3.20.0020.0343.25
4.3.10.0020.0213.22
4.3.00.0070.01726.13