3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // Start $c = count(get_defined_vars()); $mystring = null; $v = get_defined_vars(); var_dump(array_slice($c, $v + 1));

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.60.0110.00416.80
7.2.00.0000.01219.58
7.1.200.0080.00415.81
7.1.100.0030.01018.23
7.1.70.0000.01016.87
7.1.60.0130.01019.46
7.1.50.0040.01217.04
7.1.00.0000.07722.43
7.0.200.0000.00716.42
7.0.140.0130.06021.95
7.0.60.0070.08019.93
7.0.50.0030.09017.84
7.0.40.0030.04320.36
7.0.30.0300.08020.13
7.0.20.0300.05020.19
7.0.10.0070.05720.17
7.0.00.0130.04320.01
5.6.280.0030.07020.95
5.6.210.0070.08720.47
5.6.200.0030.04018.12
5.6.190.0070.03720.77
5.6.180.0430.04320.48
5.6.170.0230.04320.50
5.6.160.0130.08020.37
5.6.150.0100.07018.21
5.6.140.0000.09018.12
5.6.130.0030.04318.17
5.6.120.0030.04721.02
5.6.110.0070.09321.14
5.6.100.0070.09021.00
5.6.90.0070.04320.94
5.6.80.0030.07320.43
5.5.350.0270.06720.52
5.5.340.0030.09017.98
5.5.330.0100.07720.47
5.5.320.0070.04720.20
5.5.310.0170.04320.27
5.5.300.0000.04017.90
5.5.290.0130.07017.96
5.5.280.0030.07320.73
5.5.270.0130.07720.85
5.5.260.0030.04020.86
5.5.250.0100.04320.79
5.5.240.0100.07020.15
5.4.450.0230.05319.62
5.4.440.0970.07019.40
5.4.430.1000.07319.46
5.4.420.1130.04719.13
5.4.410.0770.05319.00
5.4.400.0630.06019.23
5.4.390.0830.06318.95
5.4.380.0100.05718.50
5.4.370.0130.06018.77
5.4.360.0170.05018.76
5.4.350.0100.06018.70
5.4.340.0070.05718.67
5.4.320.0020.04312.45
5.4.310.0080.04312.45
5.4.300.0070.03612.45
5.4.290.0080.03612.45
5.4.280.0070.03512.34
5.4.270.0080.03412.35
5.4.260.0050.04012.34
5.4.250.0040.04112.35
5.4.240.0050.03812.34
5.4.230.0060.03712.34
5.4.220.0050.03812.34
5.4.210.0090.03312.34
5.4.200.0050.04812.34
5.4.190.0060.03612.34
5.4.180.0060.03712.33
5.4.170.0030.03912.34
5.4.160.0060.03912.34
5.4.150.0080.03312.34
5.4.140.0070.04012.02
5.4.130.0050.03712.01
5.4.120.0060.03511.96
5.4.110.0050.05111.96
5.4.100.0060.03711.96
5.4.90.0090.03511.96
5.4.80.0080.03411.96
5.4.70.0060.03511.96
5.4.60.0080.03311.96
5.4.50.0070.03611.96
5.4.40.0090.03411.95
5.4.30.0070.04211.95
5.4.20.0060.03611.95
5.4.10.0090.03211.95
5.4.00.0070.03611.44
5.3.290.0080.04912.80
5.3.280.0030.04212.71
5.3.270.0060.04012.73
5.3.260.0120.05212.72
5.3.250.0130.04912.72
5.3.240.0070.04312.71
5.3.230.0070.03912.71
5.3.220.0080.05312.68
5.3.210.0080.05512.68
5.3.200.0070.05512.68
5.3.190.0070.03712.68
5.3.180.0050.03812.68
5.3.170.0040.03812.67
5.3.160.0090.03412.67
5.3.150.0060.03712.67
5.3.140.0050.03712.66
5.3.130.0060.03912.65
5.3.120.0010.04412.66
5.3.110.0090.03712.66
5.3.100.0090.04212.12
5.3.90.0060.04312.09
5.3.80.0090.04112.07
5.3.70.0040.04212.07
5.3.60.0110.03912.06
5.3.50.0070.04812.00
5.3.40.0040.05312.00
5.3.30.0080.05111.95
5.3.20.0120.04511.72
5.3.10.0030.03911.70
5.3.00.0080.03711.69
5.2.170.0010.0339.18
5.2.160.0060.0289.18
5.2.150.0080.0279.18
5.2.140.0010.0349.18
5.2.130.0040.0309.14
5.2.120.0030.0309.14
5.2.110.0040.0309.14
5.2.100.0050.0299.14
5.2.90.0070.0309.14
5.2.80.0050.0299.14
5.2.70.0050.0299.14
5.2.60.0060.0299.09
5.2.50.0040.0369.06
5.2.40.0050.0299.04
5.2.30.0060.0299.01
5.2.20.0020.0329.00
5.2.10.0030.0308.93
5.2.00.0020.0328.78
5.1.60.0030.0258.06
5.1.50.0050.0258.06
5.1.40.0050.0248.04
5.1.30.0040.0278.39
5.1.20.0040.0288.42
5.1.10.0030.0268.14
5.1.00.0060.0248.14
5.0.50.0040.0206.62
5.0.40.0040.0186.48
5.0.30.0040.0306.29
5.0.20.0040.0196.27
5.0.10.0050.0186.24
5.0.00.0050.0296.23
4.4.90.0030.0154.78
4.4.80.0040.0134.75
4.4.70.0020.0164.75
4.4.60.0010.0174.75
4.4.50.0040.0154.77
4.4.40.0020.0274.71
4.4.30.0040.0144.76
4.4.20.0030.0174.84
4.4.10.0070.0194.85
4.4.00.0040.0284.75
4.3.110.0010.0174.66
4.3.100.0050.0134.66
4.3.90.0070.0104.63
4.3.80.0050.0234.59
4.3.70.0040.0134.63
4.3.60.0000.0174.63
4.3.50.0030.0154.63
4.3.40.0080.0294.54
4.3.30.0010.0233.29
4.3.20.0020.0153.26
4.3.10.0010.0213.21
4.3.00.0000.01716.16