3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface foo { function bar(); } class bar implements foo {}

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.10.0140.00016.39
7.3.00.0000.00816.21
7.2.130.0070.00716.59
7.2.120.0000.01416.87
7.2.110.0070.00716.68
7.2.100.0110.00016.63
7.2.90.0040.01116.78
7.2.80.0090.00316.89
7.2.70.0070.01016.51
7.2.60.0080.00316.58
7.2.50.0000.01116.75
7.2.40.0060.01016.70
7.2.30.0040.00716.88
7.2.20.0000.01216.61
7.2.10.0060.00616.63
7.2.00.0030.00818.12
7.1.250.0090.00315.63
7.1.240.0030.00815.29
7.1.230.0060.00615.55
7.1.220.0050.00515.44
7.1.210.0090.00315.53
7.1.200.0030.00815.66
7.1.190.0100.00015.67
7.1.180.0030.00915.38
7.1.170.0040.00815.50
7.1.160.0030.01015.47
7.1.150.0110.00315.79
7.1.140.0080.00415.54
7.1.130.0040.00415.41
7.1.120.0060.00315.64
7.1.110.0030.01415.29
7.1.100.0050.00916.91
7.1.90.0030.00615.52
7.1.80.0030.01015.21
7.1.70.0050.00516.28
7.1.60.0100.01017.47
7.1.50.0050.00516.31
7.1.40.0090.00615.24
7.1.30.0030.01015.64
7.1.20.0040.01115.77
7.1.10.0030.01015.70
7.1.00.0030.04318.86
7.0.330.0060.00615.32
7.0.320.0040.00415.21
7.0.310.0040.00415.29
7.0.300.0000.01315.20
7.0.290.0090.00314.96
7.0.280.0090.00315.42
7.0.270.0040.00815.14
7.0.260.0040.00915.27
7.0.250.0000.01215.07
7.0.240.0060.00615.31
7.0.230.0040.01115.39
7.0.220.0000.00915.29
7.0.210.0050.00515.28
7.0.200.0070.00515.83
7.0.190.0030.01015.24
7.0.180.0070.00714.99
7.0.170.0000.01115.36
7.0.160.0070.01015.07
7.0.150.0120.00015.25
7.0.140.0040.04018.60
7.0.130.0070.00415.38
7.0.120.0040.00815.23
7.0.110.0070.00715.41
7.0.100.0060.01015.31
7.0.90.0080.00015.05
7.0.80.0060.00315.30
7.0.70.2220.02717.65
7.0.60.0120.04017.73
7.0.50.0030.03116.56
7.0.40.0050.02616.77
7.0.30.0150.04116.75
7.0.20.0220.03916.77
7.0.10.0160.04116.81
7.0.00.0150.03816.60
5.6.380.0100.00013.83
5.6.370.0000.00914.40
5.6.360.0060.00613.86
5.6.350.0050.01114.27
5.6.340.0000.00814.52
5.6.330.0080.00014.03
5.6.320.0130.00314.39
5.6.310.0040.01213.96
5.6.300.0040.01113.88
5.6.290.0060.00814.06
5.6.280.0040.00814.32
5.6.270.0070.00714.20
5.6.260.0090.00614.37
5.6.250.0030.01014.13
5.6.240.0030.01314.30
5.6.230.0030.01013.90
5.6.220.0030.00714.21
5.6.210.0060.04417.33
5.6.200.0070.04116.18
5.6.190.0050.04517.29
5.6.180.0140.04117.28
5.6.170.0190.04417.22
5.6.160.0060.04717.25
5.6.150.0050.04516.08
5.6.140.0110.03316.21
5.6.130.0080.01816.22
5.6.120.0090.02717.63
5.6.110.0120.02917.57
5.6.100.0030.02617.66
5.6.90.0030.03217.50
5.6.80.0070.02017.12
5.6.70.0100.04517.16
5.6.60.0090.00613.73
5.6.50.0060.00914.00
5.6.40.0000.01513.85
5.6.30.0060.00913.99
5.6.20.0040.01014.30
5.6.10.0070.00313.88
5.6.00.0030.01014.03
5.5.380.0030.00610.75
5.5.370.0060.00611.03
5.5.360.0030.00910.61
5.5.350.0090.03615.78
5.5.340.0050.03514.57
5.5.330.0080.04515.61
5.5.320.0050.03715.51
5.5.310.0130.03315.51
5.5.300.0090.03514.49
5.5.290.0050.04714.57
5.5.280.0070.02715.97
5.5.270.0110.02015.70
5.5.260.0040.02316.00
5.5.250.0080.04115.74
5.5.240.0050.02915.48
5.5.230.0050.00510.80
5.5.220.0110.00410.76
5.5.210.0030.00510.93
5.5.200.0000.00811.01
5.5.190.0060.00611.11
5.5.180.0040.00410.82
5.5.170.0040.00410.91
5.5.160.0000.01110.90
5.5.150.0120.00010.75
5.5.140.0070.00410.93
5.5.130.0030.00610.79
5.5.120.0070.00310.79
5.5.110.0000.00610.93
5.5.100.0070.00410.91
5.5.90.0030.00310.99
5.5.80.0060.00311.00
5.5.70.0040.00410.88
5.5.60.0000.00511.10
5.5.50.0030.00610.95
5.5.40.0000.01010.77
5.5.30.0080.00411.03
5.5.20.0040.00410.68
5.5.10.0000.01010.48
5.5.00.0060.00610.89
5.4.450.0080.03615.12
5.4.440.0440.03515.01
5.4.430.0080.03515.33
5.4.420.0200.03314.99
5.4.410.0450.03015.19
5.4.400.0110.03114.76
5.4.390.0170.02214.76
5.4.380.0110.02814.82
5.4.370.0110.03114.95
5.4.360.0130.02514.58
5.4.350.0090.03114.79
5.4.340.0120.02714.75
5.4.330.0070.00711.07
5.4.320.0080.02814.54
5.4.310.0160.02514.74
5.4.300.0140.02314.68
5.4.290.0100.02814.61
5.4.280.0140.02614.60
5.4.270.0130.02514.72
5.4.260.0080.03114.73
5.4.250.0100.03014.81
5.4.240.0120.03014.74
5.4.230.0150.02514.91
5.4.220.0080.03514.69
5.4.210.0070.02814.69
5.4.200.0150.02313.63
5.4.190.0180.02814.69
5.4.180.0100.02714.82
5.4.170.0120.02614.81
5.4.160.0130.03214.69
5.4.150.0120.03214.68
5.4.140.0080.03413.64
5.4.130.0080.02913.44
5.4.120.0110.02613.64
5.4.110.0070.03013.43
5.4.100.0140.02713.56
5.4.90.0130.02713.32
5.4.80.0100.02813.54
5.4.70.0100.02913.47
5.4.60.0080.03113.48
5.4.50.0130.02313.50
5.4.40.0050.03513.44
5.4.30.0100.02713.52
5.4.20.0130.02313.46
5.4.10.0180.02013.39
5.4.00.0120.02513.02
5.3.290.0180.02212.47
5.3.280.0070.03112.44
5.3.270.0130.03312.54
5.3.260.0120.02912.49
5.3.250.0120.02912.46
5.3.240.0170.02212.44
5.3.230.0120.02712.46
5.3.220.0120.02512.42
5.3.210.0080.03612.27
5.3.200.0160.02212.44
5.3.190.0070.03612.46
5.3.180.0110.02812.51
5.3.170.0120.02912.49
5.3.160.0180.02512.44
5.3.150.0040.03512.49
5.3.140.0150.02812.35
5.3.130.0100.03012.39
5.3.120.0070.03412.42
5.3.110.0180.02512.44
5.3.100.0130.02612.24
5.3.90.0050.02912.13
5.3.80.0090.02812.21
5.3.70.0160.02512.13
5.3.60.0130.02612.15
5.3.50.0050.03012.01
5.3.40.0100.02812.00
5.3.30.0140.02212.18
5.3.20.0100.02912.02
5.3.10.0080.02811.84
5.3.00.0080.02611.85
5.2.170.0070.02210.28
5.2.160.0060.02310.34
5.2.150.0080.03310.12
5.2.140.0030.02610.29
5.2.130.0030.02610.23
5.2.120.0040.02310.28
5.2.110.0020.02910.24
5.2.100.0050.02510.23
5.2.90.0080.02210.23
5.2.80.0070.02410.18
5.2.70.0080.02410.17
5.2.60.0080.02110.11
5.2.50.0100.02010.24
5.2.40.0080.02310.14
5.2.30.0030.02610.19
5.2.20.0070.02210.02
5.2.10.0080.02110.04
5.2.00.0110.0189.89
5.1.60.0080.0209.54
5.1.50.0070.0209.60
5.1.40.0050.0199.59
5.1.30.0050.0229.77
5.1.20.0060.0219.71
5.1.10.0060.0239.59
5.1.00.0060.0199.57
5.0.50.0030.0208.85
5.0.40.0080.0158.71
5.0.30.0120.0228.72
5.0.20.0020.0198.64
5.0.10.0050.0168.66
5.0.00.0070.0228.65
4.4.90.0060.0127.46
4.4.80.0020.0157.44
4.4.70.0020.0147.46
4.4.60.0050.0117.42
4.4.50.0030.0137.46
4.4.40.0030.0207.45
4.4.30.0030.0177.45
4.4.20.0050.0127.50
4.4.10.0050.0157.48
4.4.00.0070.0177.44
4.3.110.0010.0157.42
4.3.100.0030.0127.38
4.3.90.0030.0127.39
4.3.80.0050.0177.45
4.3.70.0020.0137.40
4.3.60.0050.0127.45
4.3.50.0020.0147.40
4.3.40.0030.0177.41
4.3.30.0020.0146.79
4.3.20.0030.0126.83
4.3.10.0020.0126.76
4.3.00.0020.0147.99