3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $constants = get_defined_constants(); print_r(array_intersect_key($constants, array_flip(preg_grep('/^P(?:REG|CRE)_/', array_keys($constants)))));
based on GHPeT

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.30.0080.00914.82
7.3.20.1320.00714.87
7.3.10.1320.00714.88
7.3.00.1140.00514.95
7.2.160.0090.00915.06
7.2.150.1250.01015.06
7.2.140.1230.00915.07
7.2.130.1040.00615.13
7.2.120.1160.00815.09
7.2.110.0930.00715.13
7.2.100.1260.00715.12
7.2.90.1080.00715.11
7.2.80.0820.01115.23
7.2.70.0660.01115.11
7.2.60.0790.00815.27
7.2.50.1000.00815.09
7.2.40.1150.01015.13
7.2.30.1010.00615.07
7.2.20.0900.00915.18
7.2.10.0940.00715.09
7.2.00.0770.00715.82
7.1.270.1410.00714.04
7.1.260.1150.00914.12
7.1.250.0760.00914.05
7.1.240.1320.00514.14
7.1.230.0840.00914.08
7.1.220.0930.00814.07
7.1.210.0850.00714.07
7.1.200.1000.00814.42
7.1.190.0880.00714.17
7.1.180.1010.00914.08
7.1.170.1040.00714.02
7.1.160.1200.00914.21
7.1.150.1120.00614.19
7.1.140.1000.00713.99
7.1.130.0960.00714.18
7.1.120.0930.00714.16
7.1.110.0940.01014.19
7.1.100.0790.00914.77
7.1.90.0810.01114.09
7.1.80.0740.00914.13
7.1.70.0610.00814.69
7.1.60.0680.00814.87
7.1.50.0650.00614.67
7.1.40.0690.00814.01
7.1.30.0710.01114.13
7.1.20.1390.00914.09
7.1.10.0520.00914.04
7.1.00.0570.01915.45
7.0.330.1130.00913.64
7.0.320.0740.00913.71
7.0.310.0800.00913.77
7.0.300.1080.01013.77
7.0.290.0930.00613.76
7.0.280.1170.00613.73
7.0.270.0910.00913.81
7.0.260.1010.00713.86
7.0.250.1000.00613.89
7.0.240.0950.00713.76
7.0.230.0800.00413.79
7.0.220.0750.00813.80
7.0.210.1130.00913.79
7.0.200.0560.00914.32
7.0.190.0710.01013.70
7.0.180.0750.00713.85
7.0.170.0670.00913.79
7.0.160.0720.01113.66
7.0.150.0580.01013.74
7.0.140.0570.01915.21
7.0.130.0780.00813.74
7.0.120.0620.00813.87
7.0.110.0670.01013.67
7.0.100.0650.00813.87
7.0.90.0630.01013.72
7.0.80.0580.00413.74
7.0.70.0740.00613.69
7.0.60.0590.02114.71
7.0.50.0510.01514.49
7.0.40.0570.01414.92
7.0.30.0500.01514.80
7.0.20.0440.01614.96
7.0.10.0500.02714.88
7.0.00.0550.01514.88
hhvm-3.22.00.1420.18390.23
hhvm-3.21.30.1150.17789.03
hhvm-3.21.00.1310.19489.03
hhvm-3.20.20.1250.17989.28
hhvm-3.19.20.1260.17288.55
hhvm-3.18.50.1090.18187.49
hhvm-3.18.40.1160.17687.37
hhvm-3.17.30.1110.15586.21
hhvm-3.15.40.1090.15483.92
hhvm-3.13.20.1100.16395.43
hhvm-3.12.140.1260.18694.24
hhvm-3.11.10.1210.15986.14
hhvm-3.10.10.1160.17283.59
5.6.400.0160.01214.49
5.6.390.0130.01114.47
5.6.380.0100.01314.44
5.6.370.0190.00914.44
5.6.360.0130.01114.58
5.6.350.0150.00914.62
5.6.340.0180.00914.58
5.6.330.0170.00914.67
5.6.320.0150.01314.67
5.6.310.0150.01214.68
5.6.300.0120.01314.55
5.6.290.0190.00914.70
5.6.280.0110.02115.62
5.6.270.0160.00914.56
5.6.260.0150.01314.44
5.6.250.0170.00914.61
5.6.240.0170.00914.56
5.6.230.0170.00814.53
5.6.220.0130.01014.49
5.6.210.0120.01915.52
5.6.200.0140.02415.10
5.6.190.0140.01615.57
5.6.180.0660.01515.45
5.6.170.0170.01815.50
5.6.160.0130.02215.45
5.6.150.0140.02015.06
5.6.140.0130.02015.09
5.6.130.0120.01515.16
5.6.120.0120.02015.66
5.6.110.0110.01615.58
5.6.100.0120.01915.50
5.6.90.0170.01815.65
5.6.80.0160.01815.47
5.6.70.0850.01215.43
5.6.60.0160.00914.46
5.6.50.0130.00814.34
5.6.40.0120.01414.39
5.6.30.0160.01014.52
5.6.20.0180.01114.38
5.6.10.0110.01214.52
5.6.00.0150.01114.33
5.5.380.0140.00914.51
5.5.370.0070.01314.38
5.5.360.0100.01114.39
5.5.350.0150.01915.41
5.5.340.0110.02615.04
5.5.330.0150.01815.42
5.5.320.0170.01815.33
5.5.310.0160.01715.53
5.5.300.0120.01915.08
5.5.290.0100.01815.08
5.5.280.0130.01215.60
5.5.270.0130.01215.56
5.5.260.0140.01715.45
5.5.250.0130.01715.44
5.5.240.0120.02215.52
5.5.230.0120.01014.40
5.5.220.0130.01214.30
5.5.210.0120.01014.42
5.5.200.0140.01014.48
5.5.190.0140.01014.34
5.5.180.0150.01014.50
5.5.170.0100.01314.38
5.5.160.0130.01014.40
5.5.150.0160.00814.30
5.5.140.0180.00514.30
5.5.130.0160.00814.39
5.5.120.0120.01214.49
5.5.110.0150.00814.45
5.5.100.0140.01014.33
5.5.90.0120.01214.30
5.5.80.0110.01214.42
5.5.70.0130.00914.40
5.5.60.0140.01014.31
5.5.50.0120.01114.48
5.5.40.0160.00914.40
5.5.30.0130.01214.34
5.5.20.0100.01114.36
5.5.10.0170.00914.38
5.5.00.0090.01314.21
5.4.450.0150.01212.45
5.4.440.0120.01812.56
5.4.430.0120.01812.55
5.4.420.0170.00612.57
5.4.410.0210.00412.42
5.4.400.0210.00612.33
5.4.390.0180.00512.45
5.4.380.0200.00412.40
5.4.370.0190.00412.31
5.4.360.0210.00512.34
5.4.350.0170.00712.47
5.4.340.0210.00412.42
5.4.330.0100.00611.11
5.4.320.0100.01311.31
5.4.310.0090.01411.28
5.4.300.0100.01411.28
5.4.290.0120.01011.36
5.4.280.0090.01211.27
5.4.270.0090.01311.26
5.4.260.0090.01411.34
5.4.250.0080.01211.18
5.4.240.0100.01211.30
5.4.230.0100.01311.33
5.4.220.0120.01111.27
5.4.210.0120.01111.30
5.4.200.0100.01011.23
5.4.190.0080.01011.28
5.4.180.0100.01111.23
5.4.170.0080.01111.31
5.4.160.0110.01111.22
5.4.150.0100.01211.22
5.4.140.0110.01411.34
5.4.130.0090.01211.28
5.4.120.0130.01011.27
5.4.110.0070.01411.29
5.4.100.0090.01111.26
5.4.90.0110.01111.28
5.4.80.0090.01211.20
5.4.70.0110.01111.21
5.4.60.0080.01211.30
5.4.50.0060.01411.23
5.4.40.0060.01211.29
5.4.30.0090.01111.22
5.4.20.0080.01111.21
5.4.10.0080.01111.24
5.4.00.0080.01311.18
5.3.290.0090.03813.10
5.3.280.0080.03713.03
5.3.270.0080.03913.04
5.3.260.0080.03713.04
5.3.250.0060.03913.04
5.3.240.0130.03813.04
5.3.230.0080.03713.03
5.3.220.0080.04713.00
5.3.210.0030.04313.00
5.3.200.0040.04013.00
5.3.190.0060.03913.00
5.3.180.0020.04213.00
5.3.170.0110.03513.00
5.3.160.0080.03713.00
5.3.150.0090.04013.00
5.3.140.0120.03512.99
5.3.130.0080.04412.98
5.3.120.0100.04612.98
5.3.110.0050.04112.98
5.3.100.0070.04012.47
5.3.90.0080.04212.45
5.3.80.0050.03912.44
5.3.70.0070.04112.44
5.3.60.0090.03712.42
5.3.50.0070.03812.38
5.3.40.0050.04012.37
5.3.30.0090.04012.33
5.3.20.0070.04412.13
5.3.10.0100.03712.07
5.3.00.0050.04112.05
5.2.170.0070.0419.50
5.2.160.0030.0349.49
5.2.150.0110.0329.49
5.2.140.0080.0389.49
5.2.130.0080.0349.45
5.2.120.0040.0309.45
5.2.110.0060.0299.46
5.2.100.0070.0369.45
5.2.90.0050.0329.45
5.2.80.0090.0299.45
5.2.70.0040.0329.45
5.2.60.0050.0309.40
5.2.50.0070.0289.37
5.2.40.0070.0339.43
5.2.30.0060.0319.40
5.2.20.0050.0329.39
5.2.10.0010.0379.24
5.2.00.0030.0329.09
5.1.60.0020.0288.45
5.1.50.0050.0278.45
5.1.40.0060.0248.43
5.1.30.0050.0268.78
5.1.20.0040.0308.80
5.1.10.0080.0348.52
5.1.00.0080.0348.52
5.0.50.0030.0236.77
5.0.40.0040.0216.63
5.0.30.0070.0406.44
5.0.20.0070.0246.41
5.0.10.0040.0206.39
5.0.00.0040.0326.38
4.4.90.0020.0164.78
4.4.80.0030.0154.76
4.4.70.0020.0184.76
4.4.60.0030.0154.76
4.4.50.0030.0154.77
4.4.40.0040.0244.73
4.4.30.0020.0174.76
4.4.20.0040.0144.85
4.4.10.0010.0184.85
4.4.00.0000.0284.76
4.3.110.0030.0164.67
4.3.100.0040.0144.67
4.3.90.0030.0144.64
4.3.80.0000.0284.63
4.3.70.0020.0164.63
4.3.60.0040.0134.63
4.3.50.0020.0174.63
4.3.40.0030.0244.58
4.3.30.0010.0173.39
4.3.20.0040.0153.37
4.3.10.0020.0163.32
4.3.00.0000.01313.59