3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $items = false $items['test'] = ['test' => 'test']; var_dump($items);
based on oiROs

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.1.70.0060.00616.76
7.1.60.0220.00635.09
7.1.50.0150.01234.41
7.1.40.0270.01034.19
7.1.30.0340.00634.57
7.1.20.0250.00934.38
7.1.10.0060.01216.57
7.1.00.0100.00614.55
7.0.200.0070.00716.77
7.0.190.0000.01216.44
7.0.180.0050.00915.84
7.0.170.0070.01016.16
7.0.160.0070.01116.21
7.0.150.0070.01016.13
7.0.140.0080.01316.03
7.0.130.0080.00616.41
7.0.120.0040.01316.40
7.0.110.0070.01016.14
7.0.100.0030.00915.93
7.0.90.0090.00616.13
7.0.80.0060.01414.33
7.0.70.0030.00916.07
7.0.60.0000.01215.98
7.0.50.0000.01216.19
7.0.40.0060.01116.59
7.0.30.0070.00916.40
7.0.20.0060.01314.37
7.0.10.0050.01216.38
7.0.00.0060.00816.22
hhvm-3.17.30.0590.22990.39
hhvm-3.15.40.0440.22288.05
hhvm-3.13.20.0650.23799.05
hhvm-3.12.140.0760.219100.63
hhvm-3.11.10.0720.23793.71
hhvm-3.10.10.0650.19888.98
5.6.300.0200.06620.77
5.6.290.0030.06320.57
5.6.280.0110.07320.99
5.6.270.0110.06720.77
5.6.260.0070.05620.91
5.6.250.0390.05120.83
5.6.240.0070.06320.76
5.6.230.0130.07920.77
5.6.220.0120.05420.79
5.6.210.0100.05820.57
5.6.200.0130.05820.80
5.6.190.0100.06320.79
5.6.180.0150.06920.96
5.6.170.0000.07920.75
5.6.160.0060.06620.76
5.6.150.0090.07221.02
5.6.140.0190.06120.75
5.6.130.0100.06320.77
5.6.120.0220.05020.79
5.6.110.0040.06720.92
5.6.100.0130.05820.73
5.6.90.0080.06120.78
5.6.80.0030.05820.11
5.6.70.0100.05420.40
5.6.60.0090.05620.30
5.6.50.0110.06120.11
5.6.40.0060.05420.14
5.6.30.0070.06520.13
5.6.20.0110.05820.11
5.6.10.0110.05620.12
5.6.00.0030.06820.36
5.5.380.0130.05417.41
5.5.370.0100.07017.54
5.5.360.0100.05517.56
5.5.350.0100.05417.46
5.5.340.0110.05617.78
5.5.330.0030.08617.71
5.5.320.0060.07717.96
5.5.310.0070.06117.95
5.5.300.0070.06917.94
5.5.290.0180.05317.94
5.5.280.0070.06518.06
5.5.270.0130.05617.76
5.5.260.0040.06717.99
5.5.250.0030.06117.75
5.5.240.0090.05417.42
5.5.230.0030.06017.10
5.5.220.0100.05117.40
5.5.210.0030.07817.18
5.5.200.0120.05617.39
5.5.190.0090.05917.37
5.5.180.0060.06317.32
5.5.160.0030.06817.39
5.5.150.0200.06217.09
5.5.140.0080.06817.41
5.5.130.0130.05517.29
5.5.120.0070.05817.29
5.5.110.0120.06017.37
5.5.100.0100.07017.29
5.5.90.0120.07117.19
5.5.80.0040.07717.32
5.5.70.0060.06817.32
5.5.60.0090.06017.18
5.5.50.0060.06817.36
5.5.40.0130.06117.23
5.5.30.0030.06417.36
5.5.20.0000.07317.30
5.5.10.0070.05516.94
5.5.00.0130.07017.29
5.4.450.0150.04919.34
5.4.440.0090.05619.26
5.4.430.0120.05419.21
5.4.420.0110.05219.15
5.4.410.0100.05719.21
5.4.400.0030.05419.23
5.4.390.0130.04719.05
5.4.380.0090.05918.99
5.4.370.0100.05419.01
5.4.360.0130.06019.02
5.4.350.0000.07219.00
5.4.340.0030.05919.02
5.4.320.0030.06719.14
5.4.310.0030.07319.00
5.4.300.0090.06718.83
5.4.290.0120.06219.03
5.4.280.0060.07718.95
5.4.270.0060.06919.16
5.4.260.0090.06319.14
5.4.250.0120.07118.91
5.4.240.0060.07518.82
5.4.230.0070.07619.14
5.4.220.0140.06119.05
5.4.210.0130.06019.09
5.4.200.0150.06619.14
5.4.190.0030.06218.91
5.4.180.0160.05718.97
5.4.170.0130.06619.13
5.4.160.0260.04918.80
5.4.150.0070.05518.99
5.4.140.0170.03916.61
5.4.130.0100.04216.40
5.4.120.0030.05916.39
5.4.110.0070.06916.69
5.4.100.0060.06516.64
5.4.90.0030.05816.71
5.4.80.0090.05116.66
5.4.70.0030.05216.58
5.4.60.0100.05016.39
5.4.50.0090.05016.61
5.4.40.0090.04816.74
5.4.30.0060.05416.66
5.4.20.0090.05616.61
5.4.10.0040.06216.38
5.4.00.0110.04216.06
5.3.290.0100.06114.86
5.3.280.0160.05914.52
5.3.270.0070.06314.65
5.3.260.0110.04914.42
5.3.250.0070.05414.59
5.3.240.0030.05114.77
5.3.230.0070.06114.79
5.3.220.0090.05514.68
5.3.210.0130.06614.66
5.3.200.0030.07014.54
5.3.190.0120.06314.72
5.3.180.0060.05414.55
5.3.170.0100.04814.72
5.3.160.0030.06314.70
5.3.150.0090.05114.76
5.3.140.0200.04614.66
5.3.130.0100.05614.70
5.3.120.0030.05714.69
5.3.110.0100.07314.64
5.3.100.0060.05214.03
5.3.90.0060.05414.01
5.3.80.0070.04714.01
5.3.70.0030.05113.99
5.3.60.0000.05414.15
5.3.50.0090.04513.93
5.3.40.0100.05714.05
5.3.30.0030.05613.99
5.3.20.0190.03813.77
5.3.10.0000.07413.85
5.3.00.0030.06113.63
5.2.170.0070.04711.19
5.2.160.0000.05211.28
5.2.150.0030.04911.27
5.2.140.0050.06011.07
5.2.130.0030.05811.14
5.2.120.0000.06111.04
5.2.110.0070.04911.02
5.2.100.0090.05211.21
5.2.90.0070.04311.08
5.2.80.0070.04010.90
5.2.70.0070.04010.90
5.2.60.0070.05711.29
5.2.50.0030.06111.25
5.2.40.0160.04511.14
5.2.30.0040.05411.18
5.2.20.0040.04211.09
5.2.10.0100.04511.16
5.2.00.0120.04810.76
5.1.60.0060.04310.22
5.1.50.0100.03910.21
5.1.40.0030.05010.18
5.1.30.0030.04010.32
5.1.20.0070.03910.48
5.1.10.0060.03410.14
5.1.00.0030.03710.36
5.0.50.0100.0238.82
5.0.40.0030.0398.70
5.0.30.0030.0588.27
5.0.20.0030.0368.50
5.0.10.0140.0248.25
5.0.00.0070.0518.37
4.4.90.0040.0217.00
4.4.80.0030.0297.00
4.4.70.0030.0287.00
4.4.60.0030.0297.00
4.4.50.0000.0257.00
4.4.40.0020.0497.00
4.4.30.0030.0307.00
4.4.20.0000.0317.00
4.4.10.0040.0237.00
4.4.00.0030.0447.00
4.3.110.0070.0247.00
4.3.100.0000.0327.00
4.3.90.0030.0307.00
4.3.80.0060.0407.00
4.3.70.0070.0207.00
4.3.60.0000.0277.00
4.3.50.0030.0267.00
4.3.40.0070.0357.00
4.3.30.0030.0267.00
4.3.20.0040.0287.00
4.3.10.0060.0247.00
4.3.00.0060.0237.00