3v4l.org

run code in 200+ php & hhvm versions
<?php function foo(): ?array { return array(); } function bar(): ?array { return null; } foo(); 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.4.0alpha20.0100.00614.85
7.4.0alpha10.0080.00714.86
7.3.70.0040.01014.67
7.3.60.0080.00714.62
7.3.50.0070.00714.62
7.3.40.0080.00814.60
7.3.30.0070.00814.58
7.3.20.0450.00715.23
7.3.10.0590.00715.15
7.3.00.0610.00715.10
7.2.200.0070.00714.73
7.2.190.0080.00914.80
7.2.180.0080.00814.74
7.2.170.0070.00714.74
7.2.160.0080.00714.72
7.2.150.0460.00715.37
7.2.140.0460.00815.35
7.2.130.0540.00715.24
7.2.120.0520.00815.25
7.2.110.0420.00815.24
7.2.100.0420.00715.31
7.2.90.0350.00815.33
7.2.80.0390.00815.31
7.2.70.0370.00815.29
7.2.60.0360.00715.36
7.2.50.0390.00715.34
7.2.40.0410.00715.33
7.2.30.0360.00815.34
7.2.20.0390.00815.33
7.2.10.0340.00815.34
7.2.00.0350.00715.29
7.1.300.0130.00714.49
7.1.290.0180.00714.48
7.1.280.0100.00614.35
7.1.270.0310.00714.32
7.1.260.0280.00614.28
7.1.250.0630.00614.18
7.1.240.0550.00814.11
7.1.230.0410.00814.16
7.1.220.0420.00814.13
7.1.210.0490.00814.14
7.1.200.0390.00814.17
7.1.190.0470.00914.12
7.1.180.0440.00714.14
7.1.170.0450.00814.15
7.1.160.0380.00814.18
7.1.150.0360.00814.20
7.1.140.0390.00714.21
7.1.130.0390.00814.20
7.1.120.0390.00814.18
7.1.110.0380.00914.24
7.1.100.0420.00814.21
7.1.90.0440.00814.22
7.1.80.0400.00814.21
7.1.70.0350.00714.21
7.1.60.0420.00814.97
7.1.50.0360.00814.89
7.1.40.0320.00814.80
7.1.30.0360.00814.87
7.1.20.0360.00914.82
7.1.10.0330.00714.12
7.1.00.0400.00814.09
7.0.330.0590.00813.73
7.0.320.0440.00813.81
7.0.310.0330.00613.83
7.0.300.0380.00913.87
7.0.290.0380.00813.91
7.0.280.0320.00813.90
7.0.270.0400.00813.89
7.0.260.0390.00813.93
7.0.250.0350.00913.91
7.0.240.0360.00913.86
7.0.230.0380.00713.99
7.0.220.0340.00813.95
7.0.210.0280.00913.94
7.0.200.0330.00713.92
7.0.190.0300.00813.91
7.0.180.0360.00913.83
7.0.170.0340.00913.88
7.0.160.0270.00813.83
7.0.150.0310.00713.82
7.0.140.0310.00913.75
7.0.130.0360.00813.78
7.0.120.0270.00813.79
7.0.110.0370.00813.75
7.0.100.0280.00913.74
7.0.90.0260.01013.73
7.0.80.0280.00913.74
7.0.70.0300.00813.76
7.0.60.0370.00713.78
7.0.50.0370.00713.83
7.0.40.0290.00813.79
7.0.30.0300.00813.83
7.0.20.0320.00713.71
7.0.10.0310.00813.72
7.0.00.0290.00713.75
hhvm-3.22.00.1290.17090.35
hhvm-3.21.30.1160.16988.76
hhvm-3.21.00.1250.17289.03
hhvm-3.20.20.1200.17089.38
hhvm-3.19.20.1180.17489.21
hhvm-3.18.50.1080.16887.62
hhvm-3.18.40.1160.17787.91
hhvm-3.17.30.1090.16087.08
hhvm-3.15.40.1050.16084.88
hhvm-3.13.20.1180.17396.06
hhvm-3.12.140.1290.17394.93
hhvm-3.11.10.1120.17087.04
hhvm-3.10.10.1130.16483.97
5.6.400.0100.01013.98
5.6.390.0120.00914.03
5.6.380.0110.00914.00
5.6.370.0140.00914.03
5.6.360.0140.00914.02
5.6.350.0130.00814.02
5.6.340.0140.00914.08
5.6.330.0130.01014.02
5.6.320.0140.00914.03
5.6.310.0120.01014.11
5.6.300.0140.01114.22
5.6.290.0130.01214.30
5.6.280.0140.01014.24
5.6.270.0140.01114.25
5.6.260.0150.01114.27
5.6.250.0140.01214.27
5.6.240.0130.01014.26
5.6.230.0130.01114.23
5.6.220.0140.01014.22
5.6.210.0140.00914.16
5.6.200.0130.01014.21
5.6.190.0150.00914.20
5.6.180.0140.01014.29
5.6.170.0140.01114.22
5.6.160.0140.00914.23
5.6.150.0120.00914.24
5.6.140.0120.01114.22
5.6.130.0140.00914.24
5.6.120.0120.01214.28
5.6.110.0140.01114.19
5.6.100.0140.01014.25
5.6.90.0140.01014.24
5.6.80.0120.01014.16
5.6.70.0120.01114.11
5.6.60.0130.01114.14
5.6.50.0120.01014.13
5.6.40.0130.01114.09
5.6.30.0130.01114.11
5.6.20.0120.01014.15
5.6.10.0120.01214.12
5.6.00.0150.00914.15
5.5.380.0130.00913.14
5.5.370.0130.01013.11
5.5.360.0120.01013.12
5.5.350.0130.00913.13
5.5.340.0120.01013.09
5.5.330.0110.01013.13
5.5.320.0120.01013.16
5.5.310.0130.01013.13
5.5.300.0130.00913.18
5.5.290.0120.00913.16
5.5.280.0120.01013.12
5.5.270.0110.01013.10
5.5.260.0130.01013.07
5.5.250.0110.01013.11
5.5.240.0110.01013.08
5.5.230.0120.00913.08
5.5.220.0110.01013.11
5.5.210.0130.00913.04
5.5.200.0120.00913.09
5.5.190.0120.00913.06
5.5.180.0120.00813.04
5.5.170.0130.00813.17
5.5.160.0100.01113.07
5.5.150.0110.01013.07
5.5.140.0120.00813.03
5.5.130.0140.00913.04
5.5.120.0110.01113.06
5.5.110.0110.00913.06
5.5.100.0120.01012.99
5.5.90.0110.01013.09
5.5.80.0120.01012.99
5.5.70.0110.00913.01
5.5.60.0120.00913.04
5.5.50.0120.01013.00
5.5.40.0100.01012.98
5.5.30.0120.01013.01
5.5.20.0110.01013.07
5.5.10.0110.01013.04
5.5.00.0120.01013.06
5.4.450.0100.00911.32
5.4.440.0100.00811.27
5.4.430.0110.00711.28
5.4.420.0120.00711.30
5.4.410.0090.00811.30
5.4.400.0090.00811.27
5.4.390.0080.00911.24
5.4.380.0100.00811.18
5.4.370.0090.00811.25
5.4.360.0110.00711.23
5.4.350.0090.00711.23
5.4.340.0110.00611.23
5.4.330.0100.00610.99
5.4.320.0100.00711.25
5.4.310.0090.00811.24
5.4.300.0110.00711.21
5.4.290.0100.00811.22
5.4.280.0100.00711.22
5.4.270.0100.00711.24
5.4.260.0100.00711.24
5.4.250.0100.00811.26
5.4.240.0100.00811.19
5.4.230.0100.00611.22
5.4.220.0090.00711.22
5.4.210.0100.00711.17
5.4.200.0100.00711.19
5.4.190.0110.00711.21
5.4.180.0110.00711.23
5.4.170.0100.00811.23
5.4.160.0110.00711.25
5.4.150.0110.00711.21
5.4.140.0100.00711.18
5.4.130.0100.00711.21
5.4.120.0100.00811.16
5.4.110.0100.00811.17
5.4.100.0100.00711.21
5.4.90.0090.00911.15
5.4.80.0090.00911.12
5.4.70.0100.00811.22
5.4.60.0100.00711.20
5.4.50.0090.00811.19
5.4.40.0100.00711.13
5.4.30.0100.00711.18
5.4.20.0090.00811.22
5.4.10.0100.00711.16
5.4.00.0090.00811.14
5.3.290.0090.00910.79
5.3.280.0090.00610.72
5.3.270.0110.00610.74
5.3.260.0100.00810.79
5.3.250.0100.00710.75
5.3.240.0100.00810.67
5.3.230.0100.00610.73
5.3.220.0110.00610.73
5.3.210.0100.00810.72
5.3.200.0090.00810.73
5.3.190.0090.00810.79
5.3.180.0100.00710.85
5.3.170.0090.00810.86
5.3.160.0090.00710.87
5.3.150.0100.00510.85
5.3.140.0100.00810.80
5.3.130.0100.00810.83
5.3.120.0090.00810.80
5.3.110.0090.00710.82
5.3.100.0080.00710.78
5.3.90.0100.00710.84
5.3.80.0090.00710.72
5.3.70.0090.00710.71
5.3.60.0090.00810.76
5.3.50.0090.00710.72
5.3.40.0090.00710.71
5.3.30.0100.00710.71
5.3.20.0100.00710.70
5.3.10.0090.00810.58
5.3.00.0090.00810.57
5.2.170.0080.00610.16
5.2.160.0070.00710.18
5.2.150.0070.00610.14
5.2.140.0070.00610.13
5.2.130.0080.00610.12
5.2.120.0080.00510.12
5.2.110.0080.00610.12
5.2.100.0070.00610.13
5.2.90.0080.00710.12
5.2.80.0070.00710.10
5.2.70.0080.00610.10
5.2.60.0080.00610.07
5.2.50.0080.00610.12
5.2.40.0070.00610.10
5.2.30.0080.00610.09
5.2.20.0080.00710.02
5.2.10.0080.00510.01
5.2.00.0090.0059.99
5.1.60.0080.0059.87
5.1.50.0060.0069.87
5.1.40.0070.0059.89
5.1.30.0070.0049.90
5.1.20.0070.0059.88
5.1.10.0080.0049.88
5.1.00.0070.0059.87
5.0.50.0060.0049.79
5.0.40.0070.0049.79
5.0.30.0050.0059.78
5.0.20.0060.0049.78
5.0.10.0060.0049.78
5.0.00.0070.0049.78
4.4.90.0040.0049.78
4.4.80.0040.0049.78
4.4.70.0050.0049.78
4.4.60.0040.0059.78
4.4.50.0050.0049.78
4.4.40.0040.0049.78
4.4.30.0040.0059.78
4.4.20.0050.0039.78
4.4.10.0040.0049.78
4.4.00.0040.0049.78
4.3.110.0050.0039.78
4.3.100.0040.0049.78
4.3.90.0050.0049.78
4.3.80.0040.0049.78
4.3.70.0040.0049.78
4.3.60.0040.0049.78
4.3.50.0040.0059.78
4.3.40.0040.0059.78
4.3.30.0040.0059.78
4.3.20.0030.0049.78
4.3.10.0030.0049.78
4.3.00.0030.0049.78