3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $test = "ГЏ"; var_dump($test); var_dump(mb_convert_encoding($test, 'UTF-7', 'UTF-8')); var_dump(mb_convert_encoding($test, 'UCS-2', 'UTF-8')); var_dump(mb_detect_encoding($test, ['UTF-7', 'UCS-2', 'UTF-8']));
based on bMhfl

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.46
7.2.00.0040.01119.14
7.1.200.0070.00715.66
7.1.100.0030.00718.25
7.1.70.0060.00316.89
7.1.60.0100.01019.32
7.1.50.0120.01517.08
7.1.00.0030.07722.54
7.0.200.0000.00816.82
7.0.140.0000.07722.09
7.0.60.0130.07321.75
7.0.50.0130.05017.80
7.0.40.0100.08719.96
7.0.30.0230.05020.12
7.0.20.0330.08319.96
7.0.10.0100.05320.18
7.0.00.0100.07720.30
5.6.280.0000.07721.03
5.6.210.0070.03720.52
5.6.200.0070.08318.21
5.6.190.0030.06020.60
5.6.180.0570.06720.34
5.6.170.0270.07020.40
5.6.160.0100.08320.52
5.6.150.0130.07318.21
5.6.140.0070.08318.21
5.6.130.0030.04318.07
5.6.120.0070.07320.96
5.6.110.0070.08320.98
5.6.100.0100.08020.96
5.6.90.0070.03720.96
5.6.80.0070.08320.36
5.5.350.0100.08320.43
5.5.340.0070.04018.02
5.5.330.0070.06720.23
5.5.320.0530.06020.24
5.5.310.0300.07720.10
5.5.300.0100.07317.96
5.5.290.0130.08017.88
5.5.280.0100.07720.77
5.5.270.0100.08020.86
5.5.260.0030.04020.75
5.5.250.0130.07320.60
5.5.240.0200.05020.26
5.4.450.0070.03719.50
5.4.440.2470.04719.45
5.4.430.3600.04019.36
5.4.420.3830.03319.49
5.4.410.4770.04319.16
5.4.400.1400.06319.16
5.4.390.4170.03719.23
5.4.380.3870.04319.09
5.4.370.4930.02718.96
5.4.360.3900.03019.17
5.4.350.4700.04019.27
5.4.340.4030.02719.09
5.4.320.3700.03719.18
5.4.310.3970.03719.09
5.4.300.3830.03719.13
5.4.290.3870.04019.20
5.4.280.3700.03718.93
5.4.270.4330.04019.26
5.4.260.4200.03019.16
5.4.250.4270.04718.96
5.4.240.3600.04018.91
5.4.230.3630.03319.22
5.4.220.4370.05319.12
5.4.210.3970.03319.16
5.4.200.3800.03719.15
5.4.190.3300.03719.15
5.4.180.4200.04319.16
5.4.170.3970.03319.14
5.4.160.3800.04018.94
5.4.150.3630.04318.88
5.4.140.3670.04016.35
5.4.130.3930.03316.21
5.4.120.3700.03016.34
5.4.110.4100.05016.46
5.4.100.3930.03716.38
5.4.90.3900.03316.57
5.4.80.4300.04316.55
5.4.70.3300.03316.31
5.4.60.3770.02716.32
5.4.50.3900.03716.44
5.4.40.3630.04016.36
5.4.30.2670.03016.43
5.4.20.1470.03316.10
5.4.10.3170.03316.35
5.4.00.3370.04015.89
5.3.290.3770.04014.76
5.3.280.4870.04314.47
5.3.270.3800.04014.39
5.3.260.3770.03314.48
5.3.250.3970.03714.53
5.3.240.3930.04014.64
5.3.230.3530.03014.52
5.3.220.3900.04314.38
5.3.210.3670.03714.49
5.3.200.4070.03314.58
5.3.190.4070.03714.59
5.3.180.4030.03314.36
5.3.170.3700.04314.38
5.3.160.4170.04314.46
5.3.150.4270.04014.58
5.3.140.3770.03314.46
5.3.130.0900.04014.50
5.3.120.1070.03714.49
5.3.110.2130.03314.49
5.3.100.3870.03313.96
5.3.90.3900.03713.95
5.3.80.3930.03713.84
5.3.70.3630.03313.95
5.3.60.3500.03713.85
5.3.50.3670.04013.92
5.3.40.2970.03313.92
5.3.30.2800.03713.84
5.3.20.3070.03713.71
5.3.10.3570.03713.49
5.3.00.4900.03013.57
5.2.170.2800.03311.00
5.2.160.3370.03311.03
5.2.150.2230.02710.97
5.2.140.3030.03011.13
5.2.130.3030.03010.96
5.2.120.2900.03011.04
5.2.110.3530.04011.04
5.2.100.3200.03011.09
5.2.90.1630.04010.96
5.2.80.2930.03011.04
5.2.70.3330.03711.17
5.2.60.3300.02711.01
5.2.50.3030.03010.95
5.2.40.2700.03010.93
5.2.30.2630.03010.79
5.2.20.2630.03310.96
5.2.10.2530.03010.75
5.2.00.2370.03010.88
5.1.60.2500.01310.05
5.1.50.2530.0309.84
5.1.40.0600.0309.98
5.1.30.0030.03010.29
5.1.20.0000.03010.39
5.1.10.0000.03010.10
5.1.00.0000.02710.13
5.0.50.1200.0238.52
5.0.40.1370.0208.56
5.0.30.1270.0338.18
5.0.20.1500.0178.28
5.0.10.1900.0178.14
5.0.00.1830.0308.17
4.4.90.1470.0176.32
4.4.80.1070.0106.32
4.4.70.0770.0276.32
4.4.60.1300.0236.32
4.4.50.1230.0176.32
4.4.40.1370.0276.32
4.4.30.1330.0176.32
4.4.20.0000.0176.32
4.4.10.1270.0176.32
4.4.00.1400.0236.32
4.3.110.1270.0136.32
4.3.100.1170.0176.32
4.3.90.1300.0176.32
4.3.80.1830.0276.32
4.3.70.1400.0176.32
4.3.60.1470.0206.32
4.3.50.1230.0136.32
4.3.40.1170.0276.32
4.3.30.0670.0176.32
4.3.20.0770.0206.32
4.3.10.0800.0176.32
4.3.00.0800.0206.32