3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = function(callable $func) { return $func(); }; $s = function() { echo 'E'; }; $t($s);

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.130.2660.00814.61
7.2.120.1330.00514.53
7.2.110.1560.00514.52
7.2.100.1560.01214.48
7.2.90.1230.00314.49
7.2.80.2610.00814.64
7.2.70.3060.00814.74
7.2.60.1750.01214.75
7.2.50.2920.00514.90
7.2.40.1300.00714.90
7.2.30.1350.00914.91
7.2.20.1510.01214.82
7.2.10.1190.01014.75
7.2.00.1090.00914.81
7.1.250.1870.00913.89
7.1.240.2660.00913.84
7.1.230.4180.00313.52
7.1.220.4040.00313.71
7.1.210.3060.01313.94
7.1.200.2440.00713.92
7.1.190.2060.01013.85
7.1.180.2030.00613.69
7.1.170.1180.01013.80
7.1.160.1320.00013.82
7.1.150.1340.00713.60
7.1.140.0680.02013.71
7.1.130.1580.00313.83
7.1.120.0590.00713.63
7.1.110.1330.01013.98
7.1.100.1380.00613.64
7.1.90.0830.01113.99
7.1.80.0780.00613.86
7.1.70.0510.00913.57
7.1.60.0670.00613.71
7.1.50.0670.00913.99
7.1.40.0410.00313.35
7.1.30.0420.00713.82
7.1.20.0570.00713.68
7.1.10.0400.00914.00
7.1.00.2420.01013.89
7.0.330.1090.00813.21
7.0.320.3060.00613.46
7.0.310.1780.00713.50
7.0.300.1060.01213.47
7.0.290.1400.01013.52
7.0.280.0750.01113.55
7.0.270.0590.01013.54
7.0.260.0700.00413.46
7.0.250.0730.00313.62
7.0.240.2960.00713.55
7.0.230.0890.00913.55
7.0.220.1000.00013.28
7.0.210.0590.01213.41
7.0.200.0720.00313.51
7.0.190.0710.00613.61
7.0.180.0400.00713.59
7.0.170.0420.01113.59
7.0.160.0630.00713.57
7.0.150.0310.00813.58
7.0.140.0460.00813.53
7.0.130.0580.00413.39
7.0.120.0430.00913.25
7.0.110.0390.00313.55
7.0.100.0210.00313.44
7.0.90.0160.00513.55
7.0.80.0440.00413.63
7.0.70.0290.01213.20
7.0.60.0410.00713.42
7.0.50.0370.01113.47
7.0.40.0260.01013.52
7.0.30.0490.00313.63
7.0.20.0340.01113.52
7.0.10.0080.01013.50
7.0.00.0200.01013.64
hhvm-3.22.00.1690.20290.96
hhvm-3.21.30.1180.24889.51
hhvm-3.21.00.1400.17690.50
hhvm-3.20.20.1290.15490.34
hhvm-3.19.20.1300.14789.24
hhvm-3.18.50.1130.20888.11
hhvm-3.18.40.1300.18288.57
hhvm-3.17.30.1120.14387.31
hhvm-3.15.40.1090.18385.22
hhvm-3.13.20.1080.17196.68
hhvm-3.12.140.1210.14795.37
hhvm-3.11.10.1200.19587.39
hhvm-3.10.10.1150.16984.66
5.6.380.0040.01414.10
5.6.370.0130.01014.15
5.6.360.0110.01514.29
5.6.350.0110.01114.45
5.6.340.0160.00514.14
5.6.330.0110.01114.09
5.6.320.0130.01014.34
5.6.310.0080.01214.17
5.6.300.0150.00914.35
5.6.290.0100.01314.26
5.6.280.0120.00814.18
5.6.270.0120.00714.06
5.6.260.0140.00313.98
5.6.250.0150.00714.20
5.6.240.0150.00714.43
5.6.230.0180.00014.26
5.6.220.0130.00614.20
5.6.210.0100.01014.28
5.6.200.0130.01014.23
5.6.190.0090.01214.11
5.6.180.0130.00914.22
5.6.170.0060.01114.21
5.6.160.0080.01114.03
5.6.150.0140.00714.30
5.6.140.0120.01214.31
5.6.130.0130.01014.41
5.6.120.0130.00714.01
5.6.110.0180.00714.13
5.6.100.0110.01414.37
5.6.90.0110.01114.23
5.6.80.0090.01414.06
5.6.70.0110.01013.96
5.6.60.0170.00314.16
5.6.50.0070.01614.25
5.6.40.0120.00814.13
5.6.30.0140.00714.41
5.6.20.0100.01014.35
5.6.10.0090.01314.34
5.6.00.0130.00814.06
5.5.380.0130.00011.18
5.5.370.0150.00011.13
5.5.360.0030.01111.12
5.5.350.0060.01211.24
5.5.340.0110.00510.75
5.5.330.0070.00711.20
5.5.320.0070.01011.47
5.5.310.0090.00710.84
5.5.300.0110.00311.00
5.5.290.0040.01311.32
5.5.280.0100.00511.19
5.5.270.0100.00711.27
5.5.260.0140.00311.00
5.5.250.0070.00710.82
5.5.240.0080.00810.70
5.5.230.0060.00611.10
5.5.220.0100.00311.21
5.5.210.0120.00311.18
5.5.200.0100.00711.14
5.5.190.0120.00411.31
5.5.180.0110.00411.06
5.5.170.0120.00714.28
5.5.160.0080.00311.12
5.5.150.0090.00611.26
5.5.140.0060.00611.08
5.5.130.0080.01011.17
5.5.120.0150.00011.13
5.5.110.0150.00211.26
5.5.100.0100.00311.03
5.5.90.0160.00011.16
5.5.80.0000.01610.82
5.5.70.0120.00211.13
5.5.60.0130.00310.66
5.5.50.0140.00010.86
5.5.40.0030.01211.10
5.5.30.0030.01010.91
5.5.20.0100.00311.09
5.5.10.0130.00010.63
5.5.00.0080.00811.09
5.4.450.0130.00010.86
5.4.440.0110.00311.25
5.4.430.0090.00610.66
5.4.420.0140.00310.93
5.4.410.0080.00810.73
5.4.400.0100.01011.19
5.4.390.0080.00610.69
5.4.380.0090.00510.95
5.4.370.0150.00011.25
5.4.360.0150.00011.11
5.4.350.0090.00510.98
5.4.340.0050.01010.80
5.4.330.0090.00510.65
5.4.320.0100.00310.97
5.4.310.0090.00610.77
5.4.300.0110.00410.64
5.4.290.0170.00011.25
5.4.280.0080.00611.16
5.4.270.0070.00711.11
5.4.260.0060.00911.19
5.4.250.0100.00511.04
5.4.240.0050.01111.05
5.4.230.0040.00910.66
5.4.220.0140.00310.93
5.4.210.0080.00810.95
5.4.200.0050.01010.99
5.4.190.0100.00311.02
5.4.180.0130.00010.91
5.4.170.0040.01311.22
5.4.160.0090.00510.81
5.4.150.0170.00011.08
5.4.140.0050.00910.93
5.4.130.0080.00411.05
5.4.120.0130.00310.73
5.4.110.0090.00611.02
5.4.100.0080.00811.00
5.4.90.0080.00810.92
5.4.80.0140.00011.11
5.4.70.0050.00910.98
5.4.60.0090.00310.96
5.4.50.0120.00011.11
5.4.40.0000.01510.83
5.4.30.0090.00610.95
5.4.20.0040.00910.75
5.4.10.0070.00711.11
5.4.00.0140.00011.08
5.3.290.0140.00010.63
5.3.280.0110.00010.63
5.3.270.0080.00510.63
5.3.260.0110.00410.63
5.3.250.0060.00810.63
5.3.240.0100.00710.63
5.3.230.0130.00010.63
5.3.220.0070.00810.63
5.3.210.0120.00010.63
5.3.200.0070.00710.63
5.3.190.0120.00310.63
5.3.180.0050.00510.63
5.3.170.0100.00210.63
5.3.160.0040.00910.70
5.3.150.0070.00710.63
5.3.140.0060.00610.63
5.3.130.0100.00310.63
5.3.120.0030.01310.63
5.3.110.0070.00710.63
5.3.100.0060.01010.63
5.3.90.0090.00210.63
5.3.80.0090.00610.63
5.3.70.0070.00710.63
5.3.60.0000.01310.63
5.3.50.0090.00410.63
5.3.40.0110.00310.63
5.3.30.0080.00810.63
5.3.20.0090.00910.63
5.3.10.0090.00310.63
5.3.00.0120.00210.63
5.2.170.0030.00710.63
5.2.160.0060.00410.63
5.2.150.0040.00810.63
5.2.140.0140.00010.63
5.2.130.0040.00710.63
5.2.120.0070.00410.63
5.2.110.0060.00310.63
5.2.100.0070.00310.63
5.2.90.0070.00510.63
5.2.80.0120.00010.63
5.2.70.0070.00210.63
5.2.60.0060.00610.63
5.2.50.0070.00710.63
5.2.40.0090.00310.63
5.2.30.0070.00710.63
5.2.20.0070.00310.63
5.2.10.0090.00610.63
5.2.00.0060.00410.63
5.1.60.0090.00010.63
5.1.50.0070.00310.63
5.1.40.0030.00810.63
5.1.30.0090.00010.63
5.1.20.0080.00310.63
5.1.10.0090.00010.63
5.1.00.0060.00310.63
5.0.50.0070.00010.63
5.0.40.0070.00010.63
5.0.30.0000.00810.63
5.0.20.0030.00610.63
5.0.10.0030.00510.63
5.0.00.0030.00610.63
4.4.90.0030.00710.63
4.4.80.0080.00010.63
4.4.70.0050.00010.63
4.4.60.0050.00010.63
4.4.50.0030.00310.63
4.4.40.0080.00010.63
4.4.30.0050.00210.63
4.4.20.0030.00310.63
4.4.10.0060.00010.63
4.4.00.0050.00210.63
4.3.110.0000.00610.63
4.3.100.0040.00310.63
4.3.90.0060.00010.63
4.3.80.0060.00010.63
4.3.70.0030.00310.63
4.3.60.0050.00310.63
4.3.50.0070.00010.63
4.3.40.0000.00910.63
4.3.30.0000.00610.63
4.3.20.0000.00710.63
4.3.10.0000.00610.63
4.3.00.0040.00010.63