3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = new stdClass(); $bar = 'bar'; $foo->$bar = array(); // works as expected var_dump($foo); //$foo->$bar[] = 'baz'; // oops
based on U1QAu

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.3.10.0030.00616.34
7.3.00.0120.00016.65
7.2.130.0080.00016.98
7.2.120.0080.00416.64
7.2.110.0040.00716.86
7.2.100.0000.00816.62
7.2.90.0000.01016.68
7.2.80.0070.00716.97
7.2.70.0000.01216.95
7.2.60.0030.01016.82
7.2.50.0040.00416.82
7.2.40.0090.00616.70
7.2.30.0000.01116.98
7.2.20.0080.00417.05
7.2.10.0050.00516.81
7.2.00.0030.00817.99
7.1.250.0000.00915.73
7.1.240.0000.00915.49
7.1.230.0040.00415.75
7.1.220.0030.00815.79
7.1.210.0030.00715.58
7.1.200.0000.00915.75
7.1.190.0060.00315.91
7.1.180.0040.00815.79
7.1.170.0070.00315.70
7.1.160.0100.00315.80
7.1.150.0030.00915.59
7.1.140.0070.00315.68
7.1.130.0060.00615.86
7.1.120.0000.01415.80
7.1.110.0060.00315.97
7.1.100.0030.00617.02
7.1.90.0030.00615.76
7.1.80.0070.00715.39
7.1.70.0050.00716.49
7.1.60.0070.00917.57
7.1.50.0090.00616.30
7.1.40.0090.00315.68
7.1.30.0110.00015.51
7.1.20.0070.00015.96
7.1.10.0070.00315.88
7.1.00.0030.04219.01
7.0.330.0000.00915.24
7.0.320.0060.00614.95
7.0.310.0060.00614.87
7.0.300.0050.00515.42
7.0.290.0070.00715.24
7.0.280.0030.01015.00
7.0.270.0000.01415.36
7.0.260.0050.00215.14
7.0.250.0040.00715.36
7.0.240.0060.00615.42
7.0.230.0040.00415.05
7.0.220.0060.00915.16
7.0.210.0130.00015.46
7.0.200.0120.00615.67
7.0.190.0060.00615.25
7.0.180.0030.00615.29
7.0.170.0040.00415.13
7.0.160.0000.00715.26
7.0.150.0030.00915.04
7.0.140.0070.03818.56
7.0.130.0000.00815.41
7.0.120.0030.00615.07
7.0.110.0020.02318.62
7.0.100.0010.02518.40
7.0.90.0050.02218.46
7.0.80.0030.02418.56
7.0.70.0050.03018.62
7.0.60.0080.02018.39
7.0.50.0070.03018.67
7.0.40.0010.02416.59
7.0.30.0070.02516.47
7.0.20.0020.02516.43
7.0.10.0020.03016.47
7.0.00.0030.02316.53
5.6.380.0090.00314.05
5.6.370.0060.00614.40
5.6.360.0030.00714.39
5.6.350.0000.01014.45
5.6.340.0000.00814.46
5.6.330.0030.00614.35
5.6.320.0040.00414.18
5.6.310.0060.00314.30
5.6.300.0000.01414.17
5.6.290.0030.00614.46
5.6.280.0050.03817.41
5.6.270.0140.00014.39
5.6.260.0000.02617.41
5.6.250.0020.02217.39
5.6.240.0020.02517.44
5.6.230.0070.02817.43
5.6.220.0020.03917.58
5.6.210.0030.03817.49
5.6.200.0030.02217.42
5.6.190.0030.02317.23
5.6.180.0020.02917.41
5.6.170.0040.03217.31
5.6.160.0030.02217.50
5.6.150.0020.02417.31
5.6.140.0020.03017.54
5.6.130.0020.03517.54
5.6.120.0000.02617.46
5.6.110.0050.03217.36
5.6.100.0030.02417.33
5.6.90.0030.02717.38
5.6.80.0040.02116.89
5.6.70.0060.02017.05
5.6.60.0070.02517.10
5.6.50.0030.04517.21
5.6.40.0030.04317.10
5.6.30.0020.04317.07
5.6.20.0050.04317.12
5.6.10.0040.02316.98
5.6.00.0050.04117.11
5.5.380.0030.03814.16
5.5.370.0030.02314.22
5.5.360.0010.02114.31
5.5.350.0020.02214.06
5.5.340.0050.02014.35
5.5.330.0010.02314.40
5.5.320.0000.02714.49
5.5.310.0030.02014.72
5.5.300.0020.02214.51
5.5.290.0020.02514.41
5.5.280.0020.02214.47
5.5.270.0030.02014.60
5.5.260.0000.02814.25
5.5.250.0020.04214.50
5.5.240.0040.02814.08
5.5.230.0050.04214.03
5.5.220.0060.02014.09
5.5.210.0070.03514.12
5.5.200.0030.04214.25
5.5.190.0000.04214.04
5.5.180.0020.02714.10
5.5.170.0050.00010.98
5.5.160.0070.03714.08
5.5.150.0000.04314.24
5.5.140.0050.03813.99
5.5.130.0030.04014.25
5.5.120.0030.03514.36
5.5.110.0070.03714.11
5.5.100.0030.04314.03
5.5.90.0000.02514.14
5.5.80.0020.04014.13
5.5.70.0060.03613.96
5.5.60.0050.03814.25
5.5.50.0020.04214.07
5.5.40.0050.04013.95
5.5.30.0030.03913.98
5.5.20.0050.03813.97
5.5.10.0070.03514.10
5.5.00.0070.04013.96
5.4.450.0020.03515.17
5.4.440.0020.04115.23
5.4.430.0000.02315.33
5.4.420.0030.02215.19
5.4.410.0040.02015.13
5.4.400.0030.02014.95
5.4.390.0040.03915.07
5.4.380.0040.03914.89
5.4.370.0020.04014.87
5.4.360.0060.03314.98
5.4.350.0060.04015.03
5.4.340.0060.04315.08
5.4.330.0050.00010.71
5.4.320.0020.03514.87
5.4.310.0080.03314.84
5.4.300.0050.03314.87
5.4.290.0030.04215.00
5.4.280.0020.04115.06
5.4.270.0030.03514.98
5.4.260.0070.03715.04
5.4.250.0070.03814.90
5.4.240.0050.03914.89
5.4.230.0020.02614.90
5.4.220.0050.03715.04
5.4.210.0020.03914.86
5.4.200.0100.03214.97
5.4.190.0030.04014.85
5.4.180.0040.03514.98
5.4.170.0050.03814.99
5.4.160.0050.04114.89
5.4.150.0050.04114.86
5.4.140.0050.03713.44
5.4.130.0030.04213.64
5.4.120.0050.03813.67
5.4.110.0020.03713.62
5.4.100.0030.03213.71
5.4.90.0020.03813.60
5.4.80.0020.03813.52
5.4.70.0050.03513.77
5.4.60.0070.03513.65
5.4.50.0030.03713.63
5.4.40.0020.04013.79
5.4.30.0030.03513.68
5.4.20.0030.03713.43
5.4.10.0030.04113.53
5.4.00.0050.03713.49
5.3.290.0040.04012.60
5.3.280.0050.03912.56
5.3.270.0060.03712.63
5.3.260.0000.04112.60
5.3.250.0000.04112.62
5.3.240.0080.03512.66
5.3.230.0030.04212.68
5.3.220.0070.03712.59
5.3.210.0070.03712.57
5.3.200.0070.03712.60
5.3.190.0000.04212.64
5.3.180.0030.03812.57
5.3.170.0050.03712.53
5.3.160.0030.03812.67
5.3.150.0070.04112.54
5.3.140.0020.04012.57
5.3.130.0030.04012.63
5.3.120.0050.03312.52
5.3.110.0030.04012.63
5.3.100.0040.03012.32
5.3.90.0020.04312.36
5.3.80.0050.03312.39
5.3.70.0050.03512.32
5.3.60.0040.03812.32
5.3.50.0030.04012.29
5.3.40.0050.03712.36
5.3.30.0040.03812.22
5.3.20.0050.03212.21
5.3.10.0030.04012.07
5.3.00.0020.04212.08
5.2.170.0020.02410.89
5.2.160.0030.03110.88
5.2.150.0020.03210.88
5.2.140.0000.03610.89
5.2.130.0030.03110.88
5.2.120.0040.02810.94
5.2.110.0020.03310.86
5.2.100.0000.03510.86
5.2.90.0020.03510.94
5.2.80.0070.02710.87
5.2.70.0020.03510.86
5.2.60.0040.03210.85
5.2.50.0040.02810.83
5.2.40.0050.02810.82
5.2.30.0050.03310.80
5.2.20.0060.03110.78
5.2.10.0050.02310.82
5.2.00.0060.03110.68
5.1.60.0030.02610.30
5.1.50.0000.02410.29
5.1.40.0050.02610.32
5.1.30.0020.03410.47
5.1.20.0030.02710.56
5.1.10.0010.03010.36
5.1.00.0000.03210.33
5.0.50.0050.02310.23
5.0.40.0030.01910.23
5.0.30.0050.03210.23
5.0.20.0020.02210.23
5.0.10.0000.02610.23
5.0.00.0020.01810.23
4.4.90.0030.01810.23
4.4.80.0000.01910.23
4.4.70.0000.02110.23
4.4.60.0050.01810.23
4.4.50.0000.01510.23
4.4.40.0020.02710.23
4.4.30.0000.02010.23
4.4.20.0020.01510.23
4.4.10.0020.01510.23
4.4.00.0000.03210.23
4.3.110.0030.01110.23
4.3.100.0030.01710.23
4.3.90.0000.01210.23
4.3.80.0010.02610.23
4.3.70.0030.01710.23
4.3.60.0030.01810.23
4.3.50.0020.02010.23
4.3.40.0000.02510.23
4.3.30.0000.02010.23
4.3.20.0030.02010.23
4.3.10.0020.01710.23
4.3.00.0020.01910.23