3v4l.org

run code in 200+ php & hhvm versions
<?php function foo() { function bar() { echo "bar"; } bar(); } foo(); 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.4.0beta20.0080.00714.85
7.4.0beta10.0080.00714.78
7.4.0alpha30.0070.00614.79
7.4.0alpha20.0060.00714.96
7.4.0alpha10.0070.00814.92
7.3.80.0080.00614.71
7.3.70.0060.00714.63
7.3.60.0070.00714.70
7.3.50.0070.00714.63
7.3.40.0090.00614.62
7.3.30.0080.00614.63
7.3.20.0180.00614.95
7.3.10.0190.00514.88
7.3.00.0220.00614.91
7.2.210.0070.00714.80
7.2.200.0080.00714.81
7.2.190.0090.00614.77
7.2.180.0080.00614.79
7.2.170.0080.00714.73
7.2.160.0070.00714.78
7.2.150.0170.00715.09
7.2.140.0160.00715.15
7.2.130.0180.00715.13
7.2.120.0180.00715.12
7.2.110.0150.00615.07
7.2.100.0230.00615.12
7.2.90.0180.00715.13
7.2.80.0280.00715.11
7.2.70.0150.00715.09
7.2.60.0170.00615.11
7.2.50.0130.00815.11
7.2.40.0140.00715.10
7.2.30.0140.00715.21
7.2.20.0150.00815.13
7.2.10.0150.00615.11
7.2.00.0160.00615.11
7.1.310.0180.00613.99
7.1.300.0150.00714.04
7.1.290.0160.00614.01
7.1.280.0160.00613.95
7.1.270.0170.00613.95
7.1.260.0170.00613.97
7.1.250.0210.00714.02
7.1.240.0310.00913.74
7.1.230.0330.00513.92
7.1.220.0340.00313.84
7.1.210.0370.00513.92
7.1.200.0350.00313.74
7.1.190.0120.00413.82
7.1.180.0320.00614.00
7.1.170.0300.00013.61
7.1.160.0340.00614.03
7.1.150.0120.01213.51
7.1.140.0250.00813.51
7.1.130.0260.00714.03
7.1.120.0330.00413.97
7.1.110.0270.00713.77
7.1.100.0220.00813.78
7.1.90.0270.00413.68
7.1.80.0150.01113.78
7.1.70.0190.00413.69
7.1.60.0190.00613.99
7.1.50.0240.00313.86
7.1.40.3780.00313.63
7.1.30.0190.00713.68
7.1.20.0100.01013.85
7.1.10.0160.01313.88
7.1.00.0200.00613.71
7.0.330.0280.01013.46
7.0.320.0310.00513.54
7.0.310.0200.00313.49
7.0.300.0560.00013.44
7.0.290.0300.00613.46
7.0.280.0220.00713.47
7.0.270.0270.00513.51
7.0.260.0230.01113.65
7.0.250.0290.00013.61
7.0.240.0170.01013.63
7.0.230.0140.00813.46
7.0.220.0180.00613.58
7.0.210.0130.01013.43
7.0.200.0200.00713.59
7.0.190.0190.00613.53
7.0.180.0180.01213.42
7.0.170.0220.00013.32
7.0.160.0150.00813.54
7.0.150.0180.00713.51
7.0.140.0200.00513.61
7.0.130.0180.00813.31
7.0.120.0140.01413.38
7.0.110.0100.01413.52
7.0.100.0150.00813.34
7.0.90.0130.00813.53
7.0.80.0170.00613.45
7.0.70.0100.01013.30
7.0.60.0100.00813.66
7.0.50.0100.01713.66
7.0.40.0200.00413.59
7.0.30.0200.00613.47
7.0.20.0180.00713.40
7.0.10.0150.00413.64
7.0.00.0210.00313.67
hhvm-3.22.00.1600.19290.88
hhvm-3.21.30.1290.20390.13
hhvm-3.21.00.1450.15489.99
hhvm-3.20.20.1210.21090.43
hhvm-3.19.20.1500.15389.82
hhvm-3.18.50.1710.19188.49
hhvm-3.18.40.1410.17788.62
hhvm-3.17.30.1390.16687.39
hhvm-3.15.40.0990.19885.02
hhvm-3.13.20.1150.17396.46
hhvm-3.12.140.1300.19195.41
hhvm-3.11.10.1310.16387.76
hhvm-3.10.10.1180.17284.35
5.6.400.0170.00514.43
5.6.390.0180.00414.22
5.6.380.0150.00414.56
5.6.370.0110.00414.39
5.6.360.0140.00713.88
5.6.350.0170.00014.13
5.6.340.0120.01214.25
5.6.330.0130.00714.02
5.6.320.0150.00414.40
5.6.310.0080.00813.97
5.6.300.0190.01114.09
5.6.290.0140.01114.46
5.6.280.0140.00714.33
5.6.270.0200.00314.25
5.6.260.0110.01114.16
5.6.250.0040.01814.15
5.6.240.0170.00314.38
5.6.230.0100.00613.98
5.6.220.0130.01014.21
5.6.210.0100.01014.16
5.6.200.0150.00714.27
5.6.190.0080.01214.22
5.6.180.0090.00914.41
5.6.170.0220.00014.34
5.6.160.0130.00614.48
5.6.150.0090.00914.04
5.6.140.0130.00914.09
5.6.130.0100.01414.12
5.6.120.0160.00514.21
5.6.110.0170.01013.89
5.6.100.0150.00514.29
5.6.90.0060.01214.23
5.6.80.0110.00814.05
5.6.70.0100.01014.04
5.6.60.0130.00314.24
5.6.50.0120.00613.99
5.6.40.0130.01014.06
5.6.30.0230.00014.13
5.6.20.0120.00814.10
5.6.10.0160.00014.17
5.6.00.0130.00314.16
5.5.380.0030.00713.96
5.5.370.0160.01213.96
5.5.360.0140.00714.47
5.5.350.0090.00914.01
5.5.340.0100.01014.15
5.5.330.0110.00613.92
5.5.320.0150.00414.03
5.5.310.0090.01814.28
5.5.300.0160.00813.92
5.5.290.0050.01314.29
5.5.280.0030.01714.13
5.5.270.0100.01013.93
5.5.260.0130.00413.80
5.5.250.0140.00613.98
5.5.240.0120.00814.15
5.5.230.0170.00713.96
5.5.220.0040.01314.10
5.5.210.0060.01013.89
5.5.200.0190.00014.15
5.5.190.0110.00713.93
5.5.180.0210.00414.04
5.5.170.0160.00014.33
5.5.160.0100.00313.96
5.5.150.0160.00013.96
5.5.140.0040.00914.18
5.5.130.0130.00514.10
5.5.120.0050.00814.15
5.5.110.0040.01313.81
5.5.100.0060.00913.94
5.5.90.0040.01513.70
5.5.80.0090.00914.19
5.5.70.0140.00514.07
5.5.60.0040.01614.09
5.5.50.0140.01214.21
5.5.40.0230.00513.87
5.5.30.0110.01614.04
5.5.20.0000.01514.09
5.5.10.0120.00613.96
5.5.00.0100.00513.90
5.4.450.0000.01011.34
5.4.440.0100.00311.34
5.4.430.0030.01011.34
5.4.420.0030.00911.34
5.4.410.0080.00511.34
5.4.400.0100.00711.34
5.4.390.0140.00011.34
5.4.380.0070.00711.34
5.4.370.0130.00011.34
5.4.360.0060.00611.34
5.4.350.0070.00711.34
5.4.340.0110.00511.34
5.4.330.0090.00711.34
5.4.320.0090.00611.34
5.4.310.0110.00411.34
5.4.300.0030.00911.34
5.4.290.0070.00711.34
5.4.280.0080.00411.34
5.4.270.0050.00511.34
5.4.260.0070.00711.34
5.4.250.0100.00011.34
5.4.240.0140.00411.34
5.4.230.0060.01011.34
5.4.220.0100.00311.34
5.4.210.0110.00011.34
5.4.200.0120.00311.34
5.4.190.0070.00711.34
5.4.180.0120.00311.34
5.4.170.0120.00311.34
5.4.160.0070.00711.34
5.4.150.0100.00611.34
5.4.140.0050.00511.34
5.4.130.0050.00511.34
5.4.120.0040.00911.34
5.4.110.0070.00711.34
5.4.100.0060.00611.34
5.4.90.0090.00311.34
5.4.80.0080.00311.34
5.4.70.0040.00811.34
5.4.60.0030.01211.34
5.4.50.0070.00411.34
5.4.40.0140.00011.34
5.4.30.0140.00011.34
5.4.20.0160.00011.34
5.4.10.0110.00311.34
5.4.00.0100.00511.34
5.3.290.0060.00611.34
5.3.280.0070.00711.34
5.3.270.0100.00511.34
5.3.260.0100.00311.34
5.3.250.0070.00511.34
5.3.240.0040.00811.34
5.3.230.0080.00411.34
5.3.220.0040.00811.34
5.3.210.0030.00711.34
5.3.200.0090.00011.34
5.3.190.0090.00211.34
5.3.180.0040.00811.34
5.3.170.0070.00511.34
5.3.160.0110.00311.34
5.3.150.0090.00311.34
5.3.140.0050.00511.34
5.3.130.0060.00611.34
5.3.120.0080.00411.34
5.3.110.0190.00011.34
5.3.100.0120.00411.34
5.3.90.0150.00211.34
5.3.80.0080.00511.34
5.3.70.0060.00611.34
5.3.60.0090.00411.34
5.3.50.0050.01011.34
5.3.40.0030.01011.34
5.3.30.0080.00611.34
5.3.20.0070.00711.34
5.3.10.0120.00011.34
5.3.00.0080.00211.34
5.2.170.0110.00311.34
5.2.160.0000.01111.34
5.2.150.0040.00811.34
5.2.140.0050.00511.34
5.2.130.0110.00011.34
5.2.120.0070.00311.34
5.2.110.0060.00611.34
5.2.100.0110.00011.34
5.2.90.0070.00511.34
5.2.80.0070.00411.34
5.2.70.0090.00011.34
5.2.60.0060.00611.34
5.2.50.0060.00611.34
5.2.40.0140.00011.34
5.2.30.0110.00311.34
5.2.20.0070.00511.34
5.2.10.0080.00011.34
5.2.00.0080.00011.34
5.1.60.0070.00011.34
5.1.50.0060.00611.34
5.1.40.0040.00511.34
5.1.30.0070.00711.34
5.1.20.0120.00011.34
5.1.10.0080.00311.34
5.1.00.0080.00011.34
5.0.50.0080.00311.34
5.0.40.0070.00011.34
5.0.30.0020.00511.34
5.0.20.0070.00411.34
5.0.10.0060.00311.34
5.0.00.0000.01011.34
4.4.90.0060.00311.34
4.4.80.0030.00311.34
4.4.70.0000.00511.34
4.4.60.0060.00311.34
4.4.50.0030.00611.34
4.4.40.0030.00311.34
4.4.30.0000.00811.34
4.4.20.0030.00311.34
4.4.10.0000.00611.34
4.4.00.0070.00211.34
4.3.110.0030.00511.34
4.3.100.0000.00611.34
4.3.90.0000.00711.34
4.3.80.0060.00011.34
4.3.70.0000.00511.34
4.3.60.0000.00711.34
4.3.50.0050.00211.34
4.3.40.0030.00311.34
4.3.30.0030.00511.34
4.3.20.0060.00011.34
4.3.10.0050.00011.34
4.3.00.0060.00011.34