3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = utf8_encode( "KS and this isn’t a test of symbols ‘ and I still don’t understan ‘causes"); var_dump($str); var_dump(utf8_decode);

Here you find the average performance (time & memory) of each version. A greyed 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.0beta10.0060.00312.65
7.3.0alpha10.0040.00712.52
7.2.60.0030.01316.65
7.2.00.0030.01319.38
7.1.200.0080.00615.48
7.1.100.0060.00618.28
7.1.70.0030.00516.86
7.1.60.0090.00919.82
7.1.50.0100.01016.89
7.1.00.0070.06722.27
7.0.200.0050.00316.65
7.0.140.0030.09021.92
7.0.60.0230.07319.97
7.0.50.0070.05017.78
7.0.40.0000.05720.24
7.0.30.0300.06720.34
7.0.20.0200.04020.00
7.0.10.0170.04720.30
7.0.00.0100.07720.16
5.6.280.0000.07320.86
5.6.210.0070.07720.75
5.6.200.0030.07318.19
5.6.190.0030.04720.77
5.6.180.3630.04020.62
5.6.170.0170.04020.51
5.6.160.0070.07720.32
5.6.150.0030.08318.18
5.6.140.0000.05718.21
5.6.130.0100.06018.21
5.6.120.0130.08321.01
5.6.110.0030.09320.88
5.6.100.0070.05720.98
5.6.90.0070.04020.98
5.6.80.0100.05720.48
5.5.350.0130.03720.43
5.5.340.0100.06017.98
5.5.330.0170.05320.15
5.5.320.0170.04720.19
5.5.310.0270.07320.31
5.5.300.0000.04317.89
5.5.290.0030.07017.98
5.5.280.0030.04320.96
5.5.270.0170.06720.75
5.5.260.0000.08320.87
5.5.250.0100.08720.57
5.5.240.0270.06020.20
5.4.450.0800.04019.11
5.4.440.0230.04719.57
5.4.430.0830.05019.47
5.4.420.0600.05019.39
5.4.410.0030.06018.71
5.4.400.0130.05318.66
5.4.390.0200.04018.67
5.4.380.0230.05018.74
5.4.370.0230.05318.46
5.4.360.0270.04718.73
5.4.350.0270.05018.68
5.4.340.0270.05018.50
5.4.320.0060.03812.45
5.4.310.0110.04112.45
5.4.300.0090.03712.45
5.4.290.0070.03912.45
5.4.280.0070.03312.34
5.4.270.0050.03712.32
5.4.260.0110.03212.32
5.4.250.0070.04012.31
5.4.240.0050.03812.32
5.4.230.0060.03812.30
5.4.220.0060.03612.30
5.4.210.0080.04012.31
5.4.200.0040.03912.30
5.4.190.0060.03812.30
5.4.180.0090.03312.30
5.4.170.0070.03512.32
5.4.160.0080.03912.31
5.4.150.0040.04212.30
5.4.140.0080.04011.99
5.4.130.0080.03611.98
5.4.120.0040.03811.93
5.4.110.0070.03511.93
5.4.100.0050.03711.93
5.4.90.0060.03711.93
5.4.80.0060.03911.93
5.4.70.0060.03511.92
5.4.60.0080.03311.93
5.4.50.0060.03411.93
5.4.40.0040.03611.91
5.4.30.0050.03611.91
5.4.20.0080.03911.91
5.4.10.0050.03611.91
5.4.00.0050.04211.40
5.3.290.0060.03912.80
5.3.280.0090.03812.71
5.3.270.0050.04212.72
5.3.260.0080.03912.72
5.3.250.0060.03812.72
5.3.240.0120.04512.72
5.3.230.0160.04212.71
5.3.220.0090.04712.68
5.3.210.0070.04412.68
5.3.200.0050.05212.68
5.3.190.0110.03212.68
5.3.180.0070.03512.68
5.3.170.0070.03712.67
5.3.160.0070.03612.67
5.3.150.0080.03612.68
5.3.140.0080.03412.66
5.3.130.0050.04012.65
5.3.120.0080.04212.66
5.3.110.0070.03812.66
5.3.100.0050.03912.11
5.3.90.0040.04012.08
5.3.80.0050.04012.08
5.3.70.0050.03912.07
5.3.60.0070.04612.06
5.3.50.0080.03512.00
5.3.40.0080.04112.00
5.3.30.0060.05311.94
5.3.20.0070.04711.70
5.3.10.0060.03611.65
5.3.00.0050.03711.64
5.2.170.0060.0289.14
5.2.160.0060.0309.15
5.2.150.0030.0349.14
5.2.140.0060.0329.14
5.2.130.0020.0319.10
5.2.120.0030.0399.11
5.2.110.0040.0379.11
5.2.100.0060.0289.11
5.2.90.0050.0299.11
5.2.80.0060.0299.10
5.2.70.0050.0309.10
5.2.60.0050.0309.05
5.2.50.0060.0339.02
5.2.40.0070.0379.00
5.2.30.0070.0318.97
5.2.20.0060.0288.96
5.2.10.0060.0308.89
5.2.00.0040.0328.75
5.1.60.0030.0268.03
5.1.50.0030.0278.03
5.1.40.0030.0258.02
5.1.30.0040.0268.36
5.1.20.0020.0308.39
5.1.10.0060.0258.11
5.1.00.0020.0288.11
5.0.50.0060.0196.58
5.0.40.0010.0236.45
5.0.30.0040.0416.27
5.0.20.0040.0236.23
5.0.10.0030.0216.21
5.0.00.0040.0306.20
4.4.90.0020.0174.78
4.4.80.0040.0144.75
4.4.70.0030.0154.75
4.4.60.0030.0154.75
4.4.50.0020.0164.77
4.4.40.0030.0254.71
4.4.30.0010.0184.76
4.4.20.0040.0144.85
4.4.10.0060.0194.85
4.4.00.0050.0314.76
4.3.110.0030.0224.67
4.3.100.0020.0224.66
4.3.90.0060.0194.64
4.3.80.0040.0284.58
4.3.70.0020.0194.63
4.3.60.0020.0184.63
4.3.50.0030.0154.63
4.3.40.0010.0254.54
4.3.30.0020.0163.27
4.3.20.0020.0163.25
4.3.10.0000.0183.21
4.3.00.0030.01713.28