3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "Test<Test" ; $a[4] = "\x00"; echo $a;

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.00.0030.01219.50
7.1.100.0060.00617.91
7.1.70.0100.00017.12
7.1.60.0040.00816.81
7.1.50.0030.01316.77
7.1.00.0070.07322.36
7.0.200.0000.01516.81
7.0.140.0070.07022.10
7.0.60.0030.07320.01
7.0.50.0030.07017.88
7.0.40.0100.07720.30
7.0.30.0200.06320.30
7.0.20.0230.07720.01
7.0.10.0030.05720.06
7.0.00.0130.08020.32
5.6.280.0070.07021.09
5.6.210.0030.08720.60
5.6.200.0100.05018.17
5.6.190.0070.08720.60
5.6.180.0100.05320.57
5.6.170.0200.04020.48
5.6.160.0100.05720.71
5.6.150.0000.04718.18
5.6.140.0100.07018.21
5.6.130.0100.07018.09
5.6.120.0000.04320.98
5.6.110.0070.06321.00
5.6.100.0100.08321.00
5.6.90.0100.08020.87
5.6.80.0100.07320.39
5.5.350.0070.04720.43
5.5.340.0100.04017.94
5.5.330.0030.09020.21
5.5.320.0400.06320.39
5.5.310.0230.08720.36
5.5.300.0070.08717.96
5.5.290.0070.06317.87
5.5.280.0100.07320.79
5.5.270.0070.09020.66
5.5.260.0030.04020.82
5.5.250.0000.09020.57
5.5.240.0000.03320.14
5.4.450.0530.06319.13
5.4.440.0570.05719.47
5.4.430.1200.05319.16
5.4.420.0800.04719.14
5.4.410.0200.05019.04
5.4.400.0800.05719.13
5.4.390.0830.06019.22
5.4.380.0200.04718.72
5.4.370.0200.04718.73
5.4.360.0100.05318.57
5.4.350.0130.05318.68
5.4.340.0130.05318.73
5.4.320.0070.03612.45
5.4.310.0070.05112.45
5.4.300.0070.04812.45
5.4.290.0170.04212.45
5.4.280.0090.05112.34
5.4.270.0200.03612.35
5.4.260.0140.04912.35
5.4.250.0110.04912.34
5.4.240.0130.04512.35
5.4.230.0140.03912.34
5.4.220.0110.03212.34
5.4.210.0120.04212.34
5.4.200.0140.04112.34
5.4.190.0100.03412.33
5.4.180.0110.03712.34
5.4.170.0110.03412.35
5.4.160.0090.03612.34
5.4.150.0050.04212.34
5.4.140.0070.03612.02
5.4.130.0070.03412.01
5.4.120.0090.03911.97
5.4.110.0090.05111.96
5.4.100.0040.04911.96
5.4.90.0050.05011.96
5.4.80.0070.04411.97
5.4.70.0070.03611.96
5.4.60.0090.03511.96
5.4.50.0060.03711.96
5.4.40.0030.04111.95
5.4.30.0060.04311.95
5.4.20.0080.04411.95
5.4.10.0070.04211.95
5.4.00.0060.04311.44
5.3.290.0050.04112.80
5.3.280.0090.04212.71
5.3.270.0070.04612.72
5.3.260.0080.04212.72
5.3.250.0050.04112.72
5.3.240.0090.03912.72
5.3.230.0090.04512.71
5.3.220.0030.04112.68
5.3.210.0090.04112.68
5.3.200.0090.03412.68
5.3.190.0060.03912.68
5.3.180.0070.03812.68
5.3.170.0050.04112.67
5.3.160.0080.03812.67
5.3.150.0080.03812.68
5.3.140.0050.04112.66
5.3.130.0070.04612.65
5.3.120.0100.03712.66
5.3.110.0070.04012.65
5.3.100.0080.04012.12
5.3.90.0050.03812.08
5.3.80.0090.03412.07
5.3.70.0100.03612.07
5.3.60.0060.04112.06
5.3.50.0110.03412.00
5.3.40.0050.03912.00
5.3.30.0040.04011.94
5.3.20.0080.03511.72
5.3.10.0090.03511.69
5.3.00.0030.04311.67
5.2.170.0040.0389.18
5.2.160.0070.0349.18
5.2.150.0060.0329.18
5.2.140.0060.0319.17
5.2.130.0050.0359.13
5.2.120.0030.0329.13
5.2.110.0040.0379.14
5.2.100.0050.0299.13
5.2.90.0050.0309.14
5.2.80.0120.0259.13
5.2.70.0050.0329.13
5.2.60.0060.0359.09
5.2.50.0050.0339.05
5.2.40.0110.0279.03
5.2.30.0110.0349.01
5.2.20.0110.0308.99
5.2.10.0030.0308.91
5.2.00.0070.0368.77
5.1.60.0070.0348.05
5.1.50.0050.0358.05
5.1.40.0040.0368.04
5.1.30.0080.0368.39
5.1.20.0050.0378.40
5.1.10.0060.0258.13
5.1.00.0070.0268.13
5.0.50.0040.0216.61
5.0.40.0070.0186.47
5.0.30.0030.0316.28
5.0.20.0030.0216.25
5.0.10.0040.0236.23
5.0.00.0060.0316.22
4.4.90.0030.0184.78
4.4.80.0020.0224.75
4.4.70.0030.0204.75
4.4.60.0050.0144.75
4.4.50.0030.0164.77
4.4.40.0050.0324.71
4.4.30.0030.0184.76
4.4.20.0040.0154.85
4.4.10.0030.0174.85
4.4.00.0040.0254.76
4.3.110.0030.0154.66
4.3.100.0010.0164.66
4.3.90.0040.0154.63
4.3.80.0020.0264.58
4.3.70.0060.0134.63
4.3.60.0020.0154.62
4.3.50.0020.0164.63
4.3.40.0040.0274.54
4.3.30.0020.0173.28
4.3.20.0030.0173.26
4.3.10.0040.0193.21
4.3.00.0000.0237.46