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 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.110.0240.00914.59
7.2.100.1000.00714.39
7.2.90.0250.00814.43
7.2.80.0230.01214.38
7.2.70.0190.01315.12
7.2.60.0190.00715.40
7.2.50.0230.00714.81
7.2.40.0220.01014.94
7.2.30.0180.00915.79
7.2.20.0180.00815.87
7.2.10.0240.00915.97
7.2.00.0270.01116.14
7.1.230.0220.00613.66
7.1.220.0220.01013.57
7.1.210.0200.00713.45
7.1.200.0080.01114.64
7.1.190.0240.01313.70
7.1.180.0370.01013.90
7.1.170.0200.00713.60
7.1.160.0200.00813.76
7.1.150.0190.00814.65
7.1.140.0190.01214.56
7.1.130.0220.00814.75
7.1.120.0280.00715.10
7.1.110.0160.01014.88
7.1.100.0190.00614.97
7.1.90.0170.01014.91
7.1.80.0180.00814.92
7.1.70.0140.00814.48
7.1.60.0330.00732.51
7.1.50.0360.01032.29
7.1.40.0300.01031.91
7.1.30.0280.01132.24
7.1.20.0340.01332.19
7.1.10.0160.00614.29
7.1.00.0160.01014.29
7.0.310.0320.00313.41
7.0.300.0260.00813.34
7.0.290.0910.00713.49
7.0.280.0290.00313.35
7.0.270.0170.01014.29
7.0.260.0210.00714.80
7.0.250.0200.00614.59
7.0.240.0190.00914.57
7.0.230.0260.00814.62
7.0.220.0200.00714.49
7.0.210.0180.00814.22
7.0.200.0140.00914.04
7.0.190.0200.00714.08
7.0.180.0140.01013.89
7.0.170.0170.00913.88
7.0.160.0180.00913.82
7.0.150.0190.00713.91
7.0.140.0230.00813.86
7.0.130.0140.01013.97
7.0.120.0210.00614.04
7.0.110.0180.00813.89
7.0.100.0190.00613.91
7.0.90.0330.00913.97
7.0.80.0180.00813.90
7.0.70.0170.01013.84
7.0.60.0190.00713.94
7.0.50.0260.00513.98
7.0.40.0160.00814.10
7.0.30.0210.00614.00
7.0.20.0190.00813.87
7.0.10.0200.00914.03
7.0.00.0200.00913.96
hhvm-3.22.00.0980.18990.35
hhvm-3.21.30.0930.17590.44
hhvm-3.21.00.0980.18190.46
hhvm-3.20.20.1030.17890.63
hhvm-3.19.20.1080.17989.77
hhvm-3.18.50.0920.18688.63
hhvm-3.18.40.0920.18388.77
hhvm-3.17.30.1000.16987.58
hhvm-3.15.40.0840.19085.30
hhvm-3.13.20.1090.19097.02
hhvm-3.12.140.1080.16195.67
hhvm-3.11.10.1010.17587.79
hhvm-3.10.10.0890.16684.86
5.6.380.0030.01614.24
5.6.370.0150.00613.91
5.6.360.0120.01214.48
5.6.350.0100.01214.32
5.6.340.0160.00814.48
5.6.330.0150.00714.14
5.6.320.0090.01314.24
5.6.310.0190.00414.15
5.6.300.0130.03417.37
5.6.290.0160.02817.56
5.6.280.0130.03517.56
5.6.270.0120.03317.57
5.6.260.0100.03217.54
5.6.250.0130.03617.53
5.6.240.0120.03317.52
5.6.230.0120.03217.52
5.6.220.0130.03917.47
5.6.210.0140.03117.54
5.6.200.0130.03717.46
5.6.190.0130.03417.52
5.6.180.0140.03217.46
5.6.170.0140.02917.43
5.6.160.0100.03717.42
5.6.150.0140.03217.50
5.6.140.0130.03317.53
5.6.130.0110.03917.57
5.6.120.0120.03217.48
5.6.110.0110.04117.52
5.6.100.0140.03617.47
5.6.90.0120.02917.48
5.6.80.0150.03117.06
5.6.70.0120.02917.07
5.6.60.0140.03017.11
5.6.50.0150.02717.17
5.6.40.0160.03217.22
5.6.30.0130.03117.22
5.6.20.0150.03217.10
5.6.10.0140.03417.09
5.6.00.0120.03017.18
5.5.380.0110.03014.36
5.5.370.0100.03414.27
5.5.360.0120.02914.18
5.5.350.0120.02914.21
5.5.340.0090.03314.49
5.5.330.0130.03014.58
5.5.320.0140.02814.47
5.5.310.0120.02914.54
5.5.300.0090.03314.50
5.5.290.0120.03114.54
5.5.280.0120.03014.53
5.5.270.0120.03314.50
5.5.260.0130.03014.50
5.5.250.0100.03014.30
5.5.240.0120.02714.11
5.5.230.0120.02714.19
5.5.220.0080.03214.19
5.5.210.0100.03214.19
5.5.200.0110.03014.09
5.5.190.0100.02814.18
5.5.180.0110.03014.24
5.5.170.0140.00813.82
5.5.160.0110.02814.16
5.5.150.0100.02814.11
5.5.140.0130.02814.18
5.5.130.0100.02814.13
5.5.120.0130.02914.11
5.5.110.0080.03314.21
5.5.100.0100.03214.08
5.5.90.0080.03114.04
5.5.80.0100.02714.08
5.5.70.0130.03013.98
5.5.60.0110.02814.01
5.5.50.0110.03314.02
5.5.40.0090.02914.11
5.5.30.0100.02814.11
5.5.20.0100.02814.05
5.5.10.0160.02614.08
5.5.00.0120.03214.02
5.4.450.0110.03415.24
5.4.440.0110.02815.15
5.4.430.0110.03115.12
5.4.420.0110.03115.12
5.4.410.0100.03015.13
5.4.400.0130.02614.98
5.4.390.0120.02714.93
5.4.380.0170.02214.95
5.4.370.0130.03114.87
5.4.360.0110.03214.99
5.4.350.0130.03015.00
5.4.340.0110.02814.92
5.4.330.0000.01410.95
5.4.320.0140.02815.00
5.4.310.0130.02514.88
5.4.300.0150.02914.93
5.4.290.0130.02414.94
5.4.280.0140.02514.94
5.4.270.0100.02714.94
5.4.260.0120.03115.01
5.4.250.0130.03415.02
5.4.240.0110.03014.99
5.4.230.0110.02614.96
5.4.220.0130.02615.05
5.4.210.0110.02815.00
5.4.200.0100.02814.91
5.4.190.0080.03414.94
5.4.180.0110.02714.94
5.4.170.0140.02914.95
5.4.160.0090.03414.92
5.4.150.0120.02815.04
5.4.140.0080.02913.70
5.4.130.0080.03213.75
5.4.120.0090.02813.81
5.4.110.0090.02813.70
5.4.100.0090.02713.75
5.4.90.0080.03213.62
5.4.80.0100.02413.82
5.4.70.0120.02813.83
5.4.60.0120.03013.66
5.4.50.0110.02813.78
5.4.40.0140.02613.86
5.4.30.0100.02613.85
5.4.20.0090.03013.71
5.4.10.0100.03013.75
5.4.00.0140.02813.54
5.3.290.0110.02612.66
5.3.280.0120.02912.63
5.3.270.0140.02912.59
5.3.260.0100.02812.61
5.3.250.0120.02412.59
5.3.240.0070.02812.62
5.3.230.0110.02512.58
5.3.220.0090.02812.58
5.3.210.0110.03112.64
5.3.200.0100.03012.50
5.3.190.0100.02612.54
5.3.180.0100.02612.63
5.3.170.0120.02412.64
5.3.160.0100.03112.60
5.3.150.0100.02712.61
5.3.140.0080.02812.56
5.3.130.0080.02912.51
5.3.120.0110.03012.68
5.3.110.0110.03012.57
5.3.100.0110.03012.25
5.3.90.0130.02412.30
5.3.80.0100.02612.31
5.3.70.0060.03412.28
5.3.60.0100.03112.29
5.3.50.0110.02512.25
5.3.40.0110.02412.32
5.3.30.0110.02312.21
5.3.20.0100.02412.19
5.3.10.0090.02412.08
5.3.00.0090.02712.06
5.2.170.0080.02310.55
5.2.160.0090.02210.67
5.2.150.0060.02510.63
5.2.140.0060.02310.55
5.2.130.0090.02110.60
5.2.120.0060.02510.71
5.2.110.0080.02010.65
5.2.100.0080.02310.63
5.2.90.0030.02410.59
5.2.80.0080.02010.65
5.2.70.0050.02410.62
5.2.60.0090.02010.48
5.2.50.0110.01910.57
5.2.40.0090.02110.63
5.2.30.0080.02010.56
5.2.20.0070.02510.48
5.2.10.0070.02110.36
5.2.00.0100.01910.42
5.1.60.0050.0209.88
5.1.50.0080.0179.86
5.1.40.0050.0239.96
5.1.30.0070.01810.06
5.1.20.0070.02010.08
5.1.10.0090.0229.94
5.1.00.0060.0239.92
5.0.50.0050.0169.36
5.0.40.0070.0139.33
5.0.30.0080.0249.23
5.0.20.0070.0139.26
5.0.10.0080.0159.21
5.0.00.0060.0229.26
4.4.90.0050.0109.17
4.4.80.0040.0129.17
4.4.70.0070.0099.17
4.4.60.0040.0119.17
4.4.50.0030.0139.17
4.4.40.0050.0179.17
4.4.30.0060.0129.17
4.4.20.0030.0139.17
4.4.10.0070.0109.17
4.4.00.0040.0189.17
4.3.110.0050.0149.17
4.3.100.0050.0109.17
4.3.90.0050.0109.17
4.3.80.0040.0179.17
4.3.70.0020.0129.17
4.3.60.0030.0129.17
4.3.50.0040.0129.17
4.3.40.0050.0159.17
4.3.30.0010.0149.17
4.3.20.0030.0119.17
4.3.10.0020.0139.17
4.3.00.0040.0109.17