3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Should not throw error? $a = ['bar' => 'baz']; unset($a['foo']); var_dump($a);
based on JTZWH

Here you find the average performance (time & memory) of each version. A greyed 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.00.0030.00919.43
7.1.100.0040.00817.72
7.1.70.0060.00617.21
7.1.60.0000.01516.88
7.1.50.0070.00716.94
7.1.40.0060.01316.58
7.1.30.0110.00316.54
7.1.20.0030.00916.71
7.1.10.0030.00516.63
7.1.00.0040.00416.76
7.0.200.0000.01116.77
7.0.190.0090.00216.68
7.0.180.0000.00816.12
7.0.170.0000.00816.34
7.0.160.0040.00416.34
7.0.150.0040.00416.40
7.0.140.0040.00416.49
7.0.130.0060.00316.45
7.0.120.0030.00516.79
7.0.110.0030.00516.43
7.0.100.0040.00416.40
7.0.90.0030.01616.28
7.0.80.0000.00716.46
7.0.70.0000.00816.55
7.0.60.0060.00615.93
7.0.50.0000.00716.46
7.0.40.0040.00414.95
7.0.30.0000.01014.95
7.0.20.0000.01214.95
7.0.10.0090.00014.95
7.0.00.0100.00614.95
hhvm-3.17.30.0240.09298.86
hhvm-3.15.40.0610.08496.81
hhvm-3.13.20.0100.095111.42
hhvm-3.12.140.0300.153113.67
hhvm-3.11.10.0200.151106.82
hhvm-3.10.10.0230.095103.77
5.6.300.0000.05020.66
5.6.290.0030.05320.78
5.6.280.0000.04520.84
5.6.270.0060.04520.98
5.6.260.0070.05920.97
5.6.250.0060.03820.96
5.6.240.0000.04721.02
5.6.230.0030.04320.80
5.6.220.0030.09020.91
5.6.210.0000.04820.61
5.6.200.0030.04620.80
5.6.190.0000.04420.92
5.6.180.0060.03920.83
5.6.170.0000.04420.74
5.6.160.0000.04520.90
5.6.150.0000.04721.02
5.6.140.0030.06520.72
5.6.130.0030.06921.01
5.6.120.0100.07121.02
5.6.110.0030.05020.95
5.6.100.0060.05220.93
5.6.90.0030.04420.80
5.6.80.0030.04120.16
5.6.70.0030.05220.30
5.6.60.0030.04920.19
5.6.50.0060.04820.17
5.6.40.0070.04620.29
5.6.30.0070.03620.18
5.6.20.0030.08120.11
5.6.10.0060.03520.38
5.6.00.0000.04320.29
5.5.380.0070.03717.50
5.5.370.0000.04617.50
5.5.360.0000.04117.45
5.5.350.0030.03817.47
5.5.340.0030.04017.98
5.5.330.0000.04518.02
5.5.320.0130.06517.94
5.5.310.0070.04817.98
5.5.300.0030.04518.03
5.5.290.0000.07218.03
5.5.280.0060.06517.96
5.5.270.0000.05717.73
5.5.260.0040.04918.04
5.5.250.0000.04617.84
5.5.240.0030.03717.09
5.5.230.0030.05717.32
5.5.220.0070.03717.43
5.5.210.0000.04517.22
5.5.200.0030.03617.29
5.5.190.0030.04417.38
5.5.180.0000.04217.46
5.5.160.0070.03617.32
5.5.150.0090.03517.34
5.5.140.0130.04317.40
5.5.130.0070.04017.20
5.5.120.0100.03317.37
5.5.110.0030.04217.34
5.5.100.0030.04817.28
5.5.90.0100.03217.22
5.5.80.0000.03817.36
5.5.70.0100.03217.10
5.5.60.0030.03717.10
5.5.50.0030.04717.19
5.5.40.0070.03616.95
5.5.30.0060.03717.32
5.5.20.0000.04617.21
5.5.10.0070.04817.26
5.5.00.0070.03617.20
5.4.450.0100.03319.40
5.4.440.0030.04419.21
5.4.430.0070.03719.37
5.4.420.0070.03619.30
5.4.410.0030.08419.25
5.4.400.0100.05319.03
5.4.390.0070.05718.98
5.4.380.0100.03018.84
5.4.370.0000.08119.08
5.4.360.0030.04118.83
5.4.350.0000.04419.06
5.4.340.0070.03618.98
5.4.320.0060.06518.98
5.4.310.0070.03618.93
5.4.300.0030.03918.97
5.4.290.0070.03319.08
5.4.280.0000.04819.19
5.4.270.0270.04719.00
5.4.260.0000.04519.14
5.4.250.0000.04218.82
5.4.240.0070.04119.02
5.4.230.0070.04919.04
5.4.220.0030.04819.07
5.4.210.0030.03918.91
5.4.200.0000.04319.02
5.4.190.0000.04519.02
5.4.180.0030.04719.08
5.4.170.0300.03319.06
5.4.160.0100.03319.13
5.4.150.0030.04819.12
5.4.140.0000.04516.70
5.4.130.0000.05716.57
5.4.120.0000.03616.51
5.4.110.0000.04216.72
5.4.100.0030.03316.44
5.4.90.0030.03716.65
5.4.80.0030.03416.49
5.4.70.0000.03716.45
5.4.60.0030.03316.44
5.4.50.0100.04916.32
5.4.40.0100.04016.61
5.4.30.0030.03616.59
5.4.20.0030.04416.40
5.4.10.0030.03816.64
5.4.00.0000.03615.84
5.3.290.0000.04314.95
5.3.280.0030.03814.95
5.3.270.0070.03714.95
5.3.260.0000.04814.95
5.3.250.0000.04114.95
5.3.240.0000.04414.95
5.3.230.0000.04014.95
5.3.220.0070.03314.95
5.3.210.0100.04014.95
5.3.200.0000.04114.95
5.3.190.0000.04014.95
5.3.180.0030.04114.95
5.3.170.0030.04514.95
5.3.160.0030.03614.95
5.3.150.0100.04514.95
5.3.140.0030.03814.95
5.3.130.0030.03914.95
5.3.120.0030.03814.95
5.3.110.0030.03814.95
5.3.100.0030.03814.95
5.3.90.0030.03414.95
5.3.80.0000.04014.95
5.3.70.0030.03714.95
5.3.60.0030.03814.95
5.3.50.0030.03814.95
5.3.40.0030.03714.95
5.3.30.0000.04614.95
5.3.20.0000.06314.95
5.3.10.0030.03814.95
5.3.00.0000.04114.95
5.2.170.0030.03114.95
5.2.160.0030.03914.95
5.2.150.0030.03114.95
5.2.140.0030.02714.95
5.2.130.0000.03314.95
5.2.120.0060.02814.95
5.2.110.0000.02914.95
5.2.100.0000.03214.95
5.2.90.0000.03314.95
5.2.80.0000.03014.95
5.2.70.0030.05114.95
5.2.60.0030.02714.95
5.2.50.0000.03314.95
5.2.40.0030.02814.95
5.2.30.0000.03314.95
5.2.20.0040.02914.95
5.2.10.0030.03014.95
5.2.00.0030.03314.95
5.1.60.0000.02514.95
5.1.50.0030.02314.95
5.1.40.0000.02814.95
5.1.30.0030.03414.95
5.1.20.0100.05014.95
5.1.10.0030.02814.95
5.1.00.0000.03114.95
5.0.50.0030.02414.95
5.0.40.0000.02114.95
5.0.30.0000.03314.95
5.0.20.0000.02114.95
5.0.10.0000.02114.95
5.0.00.0000.03814.95
4.4.90.0000.01614.95
4.4.80.0000.01814.95
4.4.70.0060.01214.95
4.4.60.0030.03014.95
4.4.50.0000.01614.95
4.4.40.0000.03114.95
4.4.30.0000.01814.95
4.4.20.0030.03714.95
4.4.10.0040.01514.95
4.4.00.0000.02514.95
4.3.110.0030.02014.95
4.3.100.0030.01314.95
4.3.90.0030.01914.95
4.3.80.0030.02714.95
4.3.70.0030.01314.95
4.3.60.0030.01414.95
4.3.50.0000.01814.95
4.3.40.0000.02414.95
4.3.30.0000.01714.95
4.3.20.0000.02514.95
4.3.10.0030.01514.95
4.3.00.0030.01314.95