3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { function a() {} function __destruct() { echo 'a'; } } $a = array('test','a'); $a();
based on 1sZpc

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.0rc40.0250.00798.97
7.3.0rc30.0170.00616.41
7.3.0beta10.0000.01012.52
7.3.0alpha10.0040.00412.74
7.2.60.0070.00716.84
7.2.00.0000.01219.42
7.1.200.0000.00715.60
7.1.100.0030.00917.55
7.1.70.0000.00716.89
7.1.60.0030.02219.32
7.1.50.0040.01816.79
7.1.00.0030.07022.40
7.0.200.0000.01016.71
7.0.140.0000.07721.92
7.0.60.0100.08020.03
7.0.50.0030.07317.87
7.0.40.0130.04720.10
7.0.30.0400.07320.08
7.0.20.0270.08020.33
7.0.10.0030.06320.19
7.0.00.0070.04320.15
5.6.280.0000.07720.92
5.6.210.0070.07720.63
5.6.200.0170.07018.12
5.6.190.0070.06720.39
5.6.180.0170.05320.52
5.6.170.0330.04020.45
5.6.160.0000.05320.50
5.6.150.0070.08718.16
5.6.140.0100.04018.18
5.6.130.0070.06318.20
5.6.120.0030.04020.89
5.6.110.0130.07720.89
5.6.100.0070.04721.05
5.6.90.0230.06721.04
5.6.80.0070.08020.38
5.5.350.0100.04720.48
5.5.340.0100.07017.97
5.5.330.0100.08320.47
5.5.320.0370.04320.30
5.5.310.0170.07020.35
5.5.300.0070.06717.98
5.5.290.0030.05317.96
5.5.280.0070.05720.90
5.5.270.0030.04320.64
5.5.260.0130.07320.88
5.5.250.0070.04020.68
5.5.240.0300.06720.29
5.4.450.0270.06319.48
5.4.440.0900.07019.57
5.4.430.0600.06319.54
5.4.420.0670.00019.51
5.4.410.0730.00019.41
5.4.400.0770.00019.02
5.4.390.0600.00019.03
5.4.380.0630.00019.07
5.4.370.0630.00019.16
5.4.360.0630.00019.13
5.4.350.0630.00019.24
5.4.340.0080.03312.02
5.4.320.0050.04112.50
5.4.310.0050.05112.50
5.4.300.0040.04212.50
5.4.290.0070.04412.50
5.4.280.0110.04212.39
5.4.270.0070.04112.39
5.4.260.0090.04412.40
5.4.250.0060.04612.39
5.4.240.0080.03612.40
5.4.230.0050.04212.38
5.4.220.0050.03912.38
5.4.210.0070.03612.38
5.4.200.0070.03912.39
5.4.190.0060.05412.39
5.4.180.0060.05412.39
5.4.170.0030.04012.39
5.4.160.0080.03412.39
5.4.150.0030.03912.39
5.4.140.0050.03812.07
5.4.130.0080.03412.06
5.4.120.0050.03912.02
5.4.110.0080.03212.01
5.4.100.0060.03512.01
5.4.90.0040.03912.01
5.4.80.0100.03312.01
5.4.70.0060.03512.01
5.4.60.0050.03612.01
5.4.50.0050.03712.00
5.4.40.0050.03612.00
5.4.30.0050.03711.99
5.4.20.0060.03711.99
5.4.10.0030.03911.99
5.4.00.0100.03211.48
5.3.290.0090.03912.80
5.3.280.0070.04012.70
5.3.270.0070.04612.72
5.3.260.0080.04412.72
5.3.250.0090.03412.71
5.3.240.0050.03812.72
5.3.230.0040.04212.71
5.3.220.0140.03012.68
5.3.210.0090.03712.68
5.3.200.0040.03912.68
5.3.190.0080.03712.68
5.3.180.0070.03612.67
5.3.170.0060.03712.67
5.3.160.0060.04112.67
5.3.150.0080.05212.67
5.3.140.0110.04912.66
5.3.130.0100.05212.65
5.3.120.0070.04512.66
5.3.110.0060.03912.66
5.3.100.0070.03612.12
5.3.90.0050.03712.10
5.3.80.0040.03912.10
5.3.70.0050.03812.10
5.3.60.0040.03912.08
5.3.50.0050.03712.03
5.3.40.0060.03812.03
5.3.30.0090.04611.98
5.3.20.0090.03311.77
5.3.10.0050.03711.73
5.3.00.0050.04611.73
5.2.170.0050.0319.23
5.2.160.0040.0309.23
5.2.150.0070.0379.23
5.2.140.0040.0349.22
5.2.130.0040.0309.19
5.2.120.0060.0279.19
5.2.110.0050.0299.19
5.2.100.0050.0299.18
5.2.90.0040.0349.18
5.2.80.0050.0319.18
5.2.70.0050.0309.17
5.2.60.0070.0289.13
5.2.50.0050.0309.10
5.2.40.0090.0259.08
5.2.30.0030.0319.05
5.2.20.0040.0329.04
5.2.10.0040.0378.95
5.2.00.0050.0298.80
5.1.60.0040.0258.10
5.1.50.0060.0248.09
5.1.40.0080.0238.07
5.1.30.0040.0278.41
5.1.20.0050.0268.44
5.1.10.0020.0288.17
5.1.00.0030.0278.17
5.0.50.0020.0226.64
5.0.40.0030.0206.50
5.0.30.0060.0296.32
5.0.20.0040.0216.28
5.0.10.0070.0196.26
5.0.00.0060.0306.25
4.4.90.0050.0154.78
4.4.80.0040.0164.75
4.4.70.0030.0164.75
4.4.60.0000.0184.75
4.4.50.0010.0174.77
4.4.40.0020.0264.71
4.4.30.0050.0144.76
4.4.20.0020.0164.84
4.4.10.0030.0154.85
4.4.00.0050.0234.76
4.3.110.0010.0174.67
4.3.100.0060.0124.66
4.3.90.0050.0134.63
4.3.80.0030.0264.58
4.3.70.0050.0174.63
4.3.60.0030.0174.63
4.3.50.0020.0224.63
4.3.40.0010.0264.54
4.3.30.0010.0223.30
4.3.20.0030.0203.27
4.3.10.0020.0213.23
4.3.00.0100.0277.61