3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class foo { static function bar() {} } $a = 'foo'; $a::bar();

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.0070.00716.83
7.1.200.0040.00815.57
7.1.100.0080.00317.84
7.1.70.0070.00317.16
7.1.60.0030.00919.82
7.1.50.0030.01716.80
7.1.00.0070.07322.35
7.0.200.0040.00716.65
7.0.140.0000.07021.97
7.0.60.0100.08019.90
7.0.50.0070.03717.92
7.0.40.0070.04020.25
7.0.30.0300.08020.23
7.0.20.0230.05320.08
7.0.10.0270.05720.16
7.0.00.0130.07020.09
5.6.280.0030.07321.02
5.6.210.0070.07720.56
5.6.200.0130.08018.15
5.6.190.0170.07720.47
5.6.180.2670.03020.77
5.6.170.0400.06720.39
5.6.160.0030.04720.39
5.6.150.0100.05018.19
5.6.140.0100.04718.11
5.6.130.0030.04718.19
5.6.120.0030.05321.12
5.6.110.0070.08321.01
5.6.100.0100.08720.97
5.6.90.0070.07721.13
5.6.80.0070.03720.38
5.6.70.3330.04320.35
5.5.350.0030.08020.34
5.5.340.0100.07317.93
5.5.330.0000.08720.27
5.5.320.0330.07020.31
5.5.310.0230.06020.27
5.5.300.0100.05317.98
5.5.290.0030.05018.09
5.5.280.0070.04320.68
5.5.270.0100.05320.76
5.5.260.0030.07320.96
5.5.250.0000.07320.58
5.5.240.0070.06320.04
5.4.450.1070.03319.28
5.4.440.0470.04319.54
5.4.430.0570.04019.56
5.4.420.0730.03319.41
5.4.410.0070.05718.91
5.4.400.0070.05718.75
5.4.390.0170.04718.52
5.4.380.0330.05718.74
5.4.370.0330.05018.75
5.4.360.0200.05718.62
5.4.350.0100.07318.84
5.4.340.0170.05318.78
5.4.320.0080.03412.50
5.4.310.0050.04112.49
5.4.300.0060.03612.50
5.4.290.0070.03712.50
5.4.280.0080.04012.39
5.4.270.0040.03912.39
5.4.260.0100.04412.39
5.4.250.0030.04312.40
5.4.240.0050.03612.39
5.4.230.0080.03612.39
5.4.220.0100.04312.39
5.4.210.0050.03612.39
5.4.200.0120.03312.39
5.4.190.0160.04312.38
5.4.180.0190.04212.38
5.4.170.0190.04012.39
5.4.160.0180.04312.39
5.4.150.0130.04712.38
5.4.140.0140.04712.06
5.4.130.0200.04212.05
5.4.120.0120.04812.01
5.4.110.0170.04212.00
5.4.100.0220.07012.00
5.4.90.0130.04512.00
5.4.80.0140.04712.00
5.4.70.0210.03712.00
5.4.60.0130.04612.00
5.4.50.0190.07112.00
5.4.40.0120.04511.99
5.4.30.0160.04611.98
5.4.20.0180.04111.98
5.4.10.0200.04111.98
5.4.00.0290.06011.48
5.3.290.0050.04312.80
5.3.280.0050.04212.71
5.3.270.0160.05012.73
5.3.260.0110.05312.72
5.3.250.0150.04812.72
5.3.240.0210.04012.72
5.3.230.0220.04412.71
5.3.220.0340.05912.68
5.3.210.0230.05112.68
5.3.200.0200.04512.68
5.3.190.0190.04212.68
5.3.180.0210.04012.68
5.3.170.0160.05012.67
5.3.160.0170.04512.67
5.3.150.0160.04512.67
5.3.140.0200.04412.66
5.3.130.0170.04712.66
5.3.120.0160.04612.66
5.3.110.0240.06812.66
5.3.100.0140.04912.12
5.3.90.0150.04312.09
5.3.80.0180.04312.08
5.3.70.0370.08512.08
5.3.60.0200.04112.07
5.3.50.0120.04812.02
5.3.40.0170.04312.02
5.3.30.0150.04411.99
5.3.20.0200.03911.77
5.3.10.0280.06211.72
5.3.00.0210.03811.70
5.2.170.0130.0359.21
5.2.160.0080.0399.21
5.2.150.0100.0379.21
5.2.140.0120.0359.21
5.2.130.0120.0369.18
5.2.120.0120.0359.17
5.2.110.0130.0389.18
5.2.100.0150.0369.18
5.2.90.0210.0309.18
5.2.80.0240.0889.16
5.2.70.0180.0409.16
5.2.60.0180.0379.13
5.2.50.0100.0429.09
5.2.40.0160.0339.07
5.2.30.0130.0349.05
5.2.20.0170.0359.04
5.2.10.0110.0388.93
5.2.00.0100.0408.80
5.1.60.0150.0358.08
5.1.50.0090.0338.08
5.1.40.0130.0328.07
5.1.30.0130.0318.40
5.1.20.0140.0318.44
5.1.10.0230.0828.16
5.1.00.0160.0328.16
5.0.50.0150.0236.64
5.0.40.0100.0256.49
5.0.30.0120.0416.31
5.0.20.0130.0256.28
5.0.10.0120.0246.25
5.0.00.0380.1046.25
4.4.90.0120.0224.78
4.4.80.0060.0234.76
4.4.70.0130.0194.75
4.4.60.0110.0234.76
4.4.50.0070.0244.77
4.4.40.0240.0784.71
4.4.30.0110.0204.76
4.4.20.0340.0574.85
4.4.10.0140.0174.85
4.4.00.0080.0354.76
4.3.110.0100.0214.67
4.3.100.0090.0234.66
4.3.90.0130.0204.64
4.3.80.0140.0474.58
4.3.70.0110.0214.63
4.3.60.0100.0174.63
4.3.50.0120.0164.63
4.3.40.0090.0334.54
4.3.30.0100.0193.29
4.3.20.0070.0223.29
4.3.10.0190.0673.24
4.3.00.0200.01313.29