3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php mb_substitute_character(asc('?')); var_dump(mb_convert_encoding(chr(190), 'UTF-8', 'UTF-8'));

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.60.0030.01316.61
7.2.00.0030.00919.32
7.1.200.0000.01115.54
7.1.100.0060.00617.88
7.1.70.0030.00717.05
7.1.60.0110.01419.82
7.1.50.0100.00716.53
7.1.00.0000.05722.42
7.0.200.0000.00716.54
7.0.140.0070.07022.07
7.0.60.0070.08020.00
7.0.50.0030.04317.88
7.0.40.0170.06719.96
7.0.30.0570.07320.20
7.0.20.0400.07019.99
7.0.10.0100.06020.02
7.0.00.0000.06720.12
5.6.280.0030.07321.07
5.6.210.0100.06320.47
5.6.200.0100.03318.22
5.6.190.0130.07320.60
5.6.180.0270.03320.39
5.6.170.0300.04020.38
5.6.160.0000.04320.50
5.6.150.0030.04718.18
5.6.140.0170.07318.11
5.6.130.0030.06318.08
5.6.120.0100.08720.97
5.6.110.0200.07721.08
5.6.100.0170.07321.03
5.6.90.0100.07020.87
5.6.80.0100.07720.37
5.6.70.3100.03720.49
5.5.350.0070.08320.39
5.5.340.0000.04717.91
5.5.330.0100.03720.36
5.5.320.0330.07020.32
5.5.310.0300.07320.17
5.5.300.0100.05018.02
5.5.290.0100.07317.89
5.5.280.0030.08320.89
5.5.270.0130.07320.75
5.5.260.0130.08020.79
5.5.250.0100.07720.61
5.5.240.0000.08320.14
5.4.450.0070.06719.43
5.4.440.0070.07319.21
5.4.430.0030.04319.56
5.4.420.0100.04719.48
5.4.410.0000.04019.33
5.4.400.0230.03019.14
5.4.390.0100.07019.09
5.4.380.0000.07719.22
5.4.370.0000.05719.25
5.4.360.0070.07318.93
5.4.350.0000.07719.15
5.4.340.0000.07319.18
5.4.320.0000.05318.82
5.4.310.0000.04319.09
5.4.300.0070.05319.07
5.4.290.0070.05718.79
5.4.280.0070.05719.09
5.4.270.0070.07319.13
5.4.260.0030.05018.79
5.4.250.0130.06718.78
5.4.240.0100.07019.12
5.4.230.0070.06319.14
5.4.220.0030.08018.91
5.4.210.0030.05719.09
5.4.200.0100.06019.13
5.4.190.0100.07019.20
5.4.180.0070.06019.14
5.4.170.0000.06719.09
5.4.160.0030.05319.07
5.4.150.0070.03719.07
5.4.140.0030.07716.45
5.4.130.0000.07016.31
5.4.120.0030.03716.37
5.4.110.0100.07016.45
5.4.100.0000.07316.21
5.4.90.0000.07716.39
5.4.80.0030.04316.41
5.4.70.0030.07316.20
5.4.60.0030.05716.39
5.4.50.0130.03716.33
5.4.40.0030.05016.40
5.4.30.0030.07316.28
5.4.20.0000.03716.31
5.4.10.0030.05716.03
5.4.00.0000.04315.80
5.3.290.0030.05014.75
5.3.280.0030.07714.46
5.3.270.0030.07314.53
5.3.260.0100.07314.43
5.3.250.0070.07314.46
5.3.240.0030.06014.43
5.3.230.0030.07014.45
5.3.220.0070.06714.40
5.3.210.0030.03714.52
5.3.200.0030.07714.49
5.3.190.0000.07714.42
5.3.180.0000.04714.39
5.3.170.0030.06314.54
5.3.160.0000.07714.39
5.3.150.0030.04314.46
5.3.140.0030.06014.40
5.3.130.0000.08014.39
5.3.120.0030.04714.45
5.3.110.0030.07314.47
5.3.100.0030.05713.89
5.3.90.0000.04713.89
5.3.80.0100.03713.87
5.3.70.0030.04313.89
5.3.60.0000.03713.84
5.3.50.0030.06713.72
5.3.40.0000.06313.93
5.3.30.0070.04013.75
5.3.20.0030.06313.52
5.3.10.0000.06013.65
5.3.00.0030.04013.72
5.2.170.0030.06712.42
5.2.160.0030.05012.42
5.2.150.0070.04712.42
5.2.140.0030.03312.42
5.2.130.0070.06012.42
5.2.120.0030.06312.42
5.2.110.0070.04012.42
5.2.100.0000.03012.42
5.2.90.0030.05312.42
5.2.80.0000.03312.42
5.2.70.0000.03312.42
5.2.60.0070.05712.42
5.2.50.0070.03712.42
5.2.40.0000.03312.42
5.2.30.0000.05312.42
5.2.20.0070.02712.42
5.2.10.0030.04012.42
5.2.00.0030.04712.42
5.1.60.0070.04712.42
5.1.50.0000.05712.42
5.1.40.0070.03712.42
5.1.30.0030.05712.42
5.1.20.0000.04312.42
5.1.10.0030.04712.42
5.1.00.0070.05312.42
5.0.50.0070.04012.42
5.0.40.0070.04012.42
5.0.30.0030.03712.42
5.0.20.0030.04012.42
5.0.10.0070.04012.42
5.0.00.0000.04012.42
4.4.90.0030.01712.42
4.4.80.0030.02012.42
4.4.70.0000.02712.42
4.4.60.0000.02312.42
4.4.50.0100.02012.42
4.4.40.0000.04012.42
4.4.30.0000.03012.42
4.4.20.0030.03712.42
4.4.10.0030.03312.42
4.4.00.0000.05712.42
4.3.110.0000.02712.42
4.3.100.0070.02012.42
4.3.90.0000.03012.42
4.3.80.0030.04012.42
4.3.70.0100.02712.42
4.3.60.0000.03712.42
4.3.50.0100.03012.42
4.3.40.0000.05312.42
4.3.30.0000.03012.42
4.3.20.0030.02012.42
4.3.10.0000.01712.42
4.3.00.0000.02712.42