3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class hi { function __destruct() { echo 'hi'; } } $foo = 'O:2:"hi":0:'; $data = unserialize($foo); var_dump($data);

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.0110.00818.43
7.1.120.0070.00717.56
7.1.110.0100.01016.51
7.1.100.0130.00816.70
7.1.90.0140.00916.56
7.1.80.0230.00716.91
7.1.70.0110.01115.83
7.1.60.0290.01033.80
7.1.50.0240.01133.27
7.1.40.0250.01333.05
7.1.30.0250.01033.09
7.1.20.0300.01333.32
7.1.10.0150.00515.29
7.1.00.0120.01215.42
7.0.260.0070.00917.30
7.0.250.0170.00616.20
7.0.240.0140.00816.22
7.0.230.0280.00916.41
7.0.220.0200.00916.20
7.0.210.0150.01015.49
7.0.200.0120.01315.37
7.0.190.0170.00815.29
7.0.180.0150.00714.90
7.0.170.0120.01214.91
7.0.160.0150.01114.87
7.0.150.0190.00614.90
7.0.140.0200.00814.93
7.0.130.0110.00815.09
7.0.120.0190.00615.06
7.0.110.0130.00815.04
7.0.100.0150.01215.01
7.0.90.0140.00914.97
7.0.80.0100.01215.10
7.0.70.0160.01014.91
7.0.60.0160.01014.89
7.0.50.0240.00915.07
7.0.40.0140.01015.28
7.0.30.0130.00715.20
7.0.20.0170.00815.10
7.0.10.0160.01015.06
7.0.00.0090.01115.08
hhvm-3.22.00.0780.19590.77
hhvm-3.21.30.0860.17991.09
hhvm-3.21.00.1030.20190.42
hhvm-3.20.20.0860.18290.71
hhvm-3.19.20.0730.16490.29
hhvm-3.18.50.0590.19089.10
hhvm-3.18.40.0730.17988.87
hhvm-3.17.30.0630.15088.00
hhvm-3.15.40.0680.16785.83
hhvm-3.13.20.0700.18997.27
hhvm-3.12.140.0850.14896.01
hhvm-3.11.10.0700.15788.27
hhvm-3.10.10.0540.17985.36
5.6.300.0130.05520.69
5.6.290.0130.06020.74
5.6.280.0140.05520.90
5.6.270.0100.05620.84
5.6.260.0120.05620.77
5.6.250.0220.04520.87
5.6.240.0140.05820.91
5.6.230.0080.06820.79
5.6.220.0120.05720.73
5.6.210.0110.06220.87
5.6.200.0160.05920.82
5.6.190.0140.05620.88
5.6.180.0110.05720.76
5.6.170.0090.05720.73
5.6.160.0090.06020.86
5.6.150.0190.05720.85
5.6.140.0170.05320.82
5.6.130.0040.06520.70
5.6.120.0110.05820.77
5.6.110.0090.06620.74
5.6.100.0070.06320.84
5.6.90.0110.06020.86
5.6.80.0150.06220.22
5.6.70.0140.05420.16
5.6.60.0150.05320.21
5.6.50.0210.05820.09
5.6.40.0120.05920.23
5.6.30.0170.06120.16
5.6.20.0140.06120.16
5.6.10.0050.05620.19
5.6.00.0090.05720.08
5.5.380.0140.05317.53
5.5.370.0100.06117.59
5.5.360.0160.05417.51
5.5.350.0100.06817.52
5.5.340.0120.06017.94
5.5.330.0190.05117.92
5.5.320.0110.05217.86
5.5.310.0090.06118.01
5.5.300.0070.07317.99
5.5.290.0110.05618.09
5.5.280.0110.05418.03
5.5.270.0100.06518.03
5.5.260.0150.05917.90
5.5.250.0080.05717.84
5.5.240.0130.05917.30
5.5.230.0130.06417.44
5.5.220.0140.05917.33
5.5.210.0110.06417.22
5.5.200.0100.05517.32
5.5.190.0120.06217.19
5.5.180.0100.07217.36
5.5.160.0130.05517.36
5.5.150.0110.05617.27
5.5.140.0170.05117.20
5.5.130.0160.05417.32
5.5.120.0130.04717.27
5.5.110.0110.05317.27
5.5.100.0140.04717.31
5.5.90.0090.05517.28
5.5.80.0140.05317.31
5.5.70.0160.04517.19
5.5.60.0090.04917.22
5.5.50.0070.05617.17
5.5.40.0090.04817.15
5.5.30.0120.04617.30
5.5.20.0110.04817.14
5.5.10.0110.05417.18
5.5.00.0100.05116.98
5.4.450.0110.06119.31
5.4.440.0140.05219.30
5.4.430.0120.05219.24
5.4.420.0090.06419.22
5.4.410.0120.06119.25
5.4.400.0130.05819.07
5.4.390.0140.05518.95
5.4.380.0190.04919.09
5.4.370.0100.05619.06
5.4.360.0110.07119.07
5.4.350.0100.06018.95
5.4.340.0130.05919.08
5.4.320.0170.05219.05
5.4.310.0080.05218.89
5.4.300.0140.05319.04
5.4.290.0110.06018.92
5.4.280.0070.06118.95
5.4.270.0090.05218.98
5.4.260.0140.04918.97
5.4.250.0190.05319.02
5.4.240.0150.06519.14
5.4.230.0090.05619.03
5.4.220.0110.05219.05
5.4.210.0090.05119.12
5.4.200.0080.05318.91
5.4.190.0040.05419.07
5.4.180.0090.05019.08
5.4.170.0140.04619.06
5.4.160.0110.04719.02
5.4.150.0140.04919.04
5.4.140.0110.05516.58
5.4.130.0080.05316.56
5.4.120.0110.04516.58
5.4.110.0070.05016.60
5.4.100.0080.05216.50
5.4.90.0040.05616.63
5.4.80.0090.04416.56
5.4.70.0120.04516.66
5.4.60.0070.04816.55
5.4.50.0150.04616.48
5.4.40.0120.05016.69
5.4.30.0100.04516.66
5.4.20.0150.04116.63
5.4.10.0080.04816.47
5.4.00.0090.04616.02
5.3.290.0100.06114.92
5.3.280.0070.05014.86
5.3.270.0160.04414.81
5.3.260.0120.04614.70
5.3.250.0150.04814.71
5.3.240.0080.05014.70
5.3.230.0090.05614.78
5.3.220.0080.05614.82
5.3.210.0070.05014.81
5.3.200.0070.04914.64
5.3.190.0090.05414.74
5.3.180.0110.04714.74
5.3.170.0100.04614.73
5.3.160.0090.04714.69
5.3.150.0110.05214.67
5.3.140.0050.04914.76
5.3.130.0100.05014.69
5.3.120.0060.05214.79
5.3.110.0090.05414.58
5.3.100.0130.04314.16
5.3.90.0100.04514.09
5.3.80.0100.04414.23
5.3.70.0070.04714.06
5.3.60.0070.04814.23
5.3.50.0100.04414.11
5.3.40.0070.04914.10
5.3.30.0110.05114.08
5.3.20.0050.04913.86
5.3.10.0090.05513.91
5.3.00.0090.04713.79
5.2.170.0080.04111.25
5.2.160.0100.03611.24
5.2.150.0070.04111.23
5.2.140.0070.04111.22
5.2.130.0080.03611.21
5.2.120.0050.04611.37
5.2.110.0050.03911.29
5.2.100.0080.03611.33
5.2.90.0070.03811.24
5.2.80.0100.04211.21
5.2.70.0040.04411.26
5.2.60.0090.03711.08
5.2.50.0100.03911.17
5.2.40.0070.03711.23
5.2.30.0070.04311.18
5.2.20.0050.03811.10
5.2.10.0090.03410.99
5.2.00.0080.03710.97
5.1.60.0070.03210.15
5.1.50.0070.03110.18
5.1.40.0050.03210.28
5.1.30.0080.03210.42
5.1.20.0070.03410.58
5.1.10.0090.03310.23
5.1.00.0050.03410.30
5.0.50.0050.0319.08
5.0.40.0060.0279.11
5.0.30.0070.0399.02
5.0.20.0030.0299.02
5.0.10.0070.0249.06
5.0.00.0060.0409.02
4.4.90.0050.0219.02
4.4.80.0060.0189.02
4.4.70.0030.0209.02
4.4.60.0030.0219.02
4.4.50.0030.0209.02
4.4.40.0060.0299.02
4.4.30.0040.0209.02
4.4.20.0010.0249.02
4.4.10.0030.0249.02
4.4.00.0030.0369.02
4.3.110.0010.0259.02
4.3.100.0040.0199.02
4.3.90.0060.0189.02
4.3.80.0070.0319.02
4.3.70.0040.0189.02
4.3.60.0010.0219.02
4.3.50.0060.0239.02
4.3.40.0030.0319.02
4.3.30.0030.0239.02
4.3.20.0030.0239.02
4.3.10.0020.0219.02
4.3.00.0060.0189.02