3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding('UTF-8'); $content = 'mesut kahveci'; if(!mb_check_encoding($content, 'UTF-8') OR !($content === mb_convert_encoding(mb_convert_encoding($content, 'UTF-32', 'UTF-8' ), 'UTF-8', 'UTF-32'))) { $content = mb_convert_encoding($content, 'UTF-8'); } echo mb_convert_case($content, MB_CASE_UPPER, "UTF-8");
based on 326N8

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.0000.01019.42
7.1.200.0030.00315.89
7.1.100.0000.01418.04
7.1.70.0060.00317.19
7.1.60.0030.01319.46
7.1.50.0120.01217.01
7.1.00.0100.07022.54
7.0.200.0140.00016.70
7.0.140.0070.03022.02
7.0.70.3700.04319.91
7.0.60.0070.07019.93
7.0.50.0030.04317.81
7.0.40.0030.08319.95
7.0.30.0200.08720.09
7.0.20.0300.07320.30
7.0.10.0170.04320.20
7.0.00.0100.09020.13
5.6.280.0030.07321.09
5.6.210.0170.07320.48
5.6.200.0030.04018.16
5.6.190.0030.09020.39
5.6.180.0330.06720.24
5.6.170.0300.03720.71
5.6.160.0100.07020.37
5.6.150.0000.04318.18
5.6.140.0100.05718.14
5.6.130.0100.07718.18
5.6.120.0070.05021.04
5.6.110.0100.08721.14
5.6.100.0000.08720.97
5.6.90.0030.04020.98
5.6.80.0070.06020.50
5.6.70.0200.04020.36
5.5.350.0200.05720.46
5.5.340.0070.04318.01
5.5.330.0070.04020.56
5.5.320.0170.07320.38
5.5.310.0270.07720.12
5.5.300.0070.08018.00
5.5.290.0030.08717.91
5.5.280.0100.05320.89
5.5.270.0000.05020.96
5.5.260.0070.08320.72
5.5.250.0170.07720.60
5.5.240.0030.07720.05
5.4.450.0600.05319.24
5.4.440.0400.06719.41
5.4.430.0030.06319.60
5.4.420.0430.05719.10
5.4.410.0200.05319.28
5.4.400.0230.06018.75
5.4.390.0200.05718.66
5.4.380.0230.05018.72
5.4.370.0270.04718.74
5.4.360.0170.05718.46
5.4.350.0200.06018.65
5.4.340.0200.06018.63
5.4.320.0230.05718.69
5.4.310.0130.06018.67
5.4.300.0130.06718.61
5.4.290.0370.03318.65
5.4.280.0130.06718.46
5.4.270.0430.06318.72
5.4.260.0070.06718.57
5.4.250.0370.04318.62
5.4.240.0200.05318.60
5.4.230.0230.04718.60
5.4.220.0430.05318.55
5.4.210.0330.06318.64
5.4.200.0300.05316.50
5.4.190.0300.04018.76
5.4.180.0230.05018.68
5.4.170.0200.05318.64
5.4.160.0070.06318.47
5.4.150.0270.05718.75
5.4.140.0200.05016.27
5.4.130.0170.04716.27
5.4.120.0230.04016.25
5.4.110.0170.04716.13
5.4.100.0100.06016.21
5.4.90.0130.05316.26
5.4.80.0100.05316.19
5.4.70.0130.06016.34
5.4.60.0230.04316.29
5.4.50.0170.05016.23
5.4.40.0230.04716.01
5.4.30.0300.04316.13
5.4.20.0230.05316.31
5.4.10.0100.07016.11
5.4.00.0200.05315.70
5.3.290.0230.06714.64
5.3.280.0230.04714.51
5.3.270.0170.06314.69
5.3.260.0170.05314.61
5.3.250.0100.06314.58
5.3.240.0070.06714.70
5.3.230.0170.05014.68
5.3.220.0330.04314.47
5.3.210.0300.05314.48
5.3.200.0130.05714.51
5.3.190.0230.06314.64
5.3.180.0200.06714.47
5.3.170.0230.06314.53
5.3.160.0230.04714.66
5.3.150.0130.06314.64
5.3.140.0270.06014.45
5.3.130.0230.05014.47
5.3.120.0270.07014.46
5.3.110.0200.07714.59
5.3.100.0170.06313.98
5.3.90.0130.05314.00
5.3.80.0100.05713.93
5.3.70.0170.05013.93
5.3.60.0170.05013.94
5.3.50.0170.05013.93
5.3.40.0230.04313.86
5.3.30.0100.05313.85
5.3.20.0170.04713.66
5.3.10.0230.04013.68
5.3.00.0000.07013.59
5.2.170.0130.04711.09
5.2.160.0070.04711.17
5.2.150.0100.04311.18
5.2.140.0100.04311.17
5.2.130.0070.04711.06
5.2.120.0100.04011.13
5.2.110.0170.03711.09
5.2.100.0200.03311.26
5.2.90.0170.04011.14
5.2.80.0130.04311.23
5.2.70.0230.03011.15
5.2.60.0270.04711.00
5.2.50.0100.04311.16
5.2.40.0100.05011.06
5.2.30.0030.05011.02
5.2.20.0200.04311.09
5.2.10.0070.04310.84
5.2.00.0070.04310.76
5.1.60.0170.0279.95
5.1.50.0130.03310.02
5.1.40.0130.0339.99
5.1.30.0130.03310.32
5.1.20.0100.03710.40
5.1.10.0100.03710.10
5.1.00.0200.03710.13
5.0.50.0030.0408.61
5.0.40.0070.0278.44
5.0.30.0070.0438.23
5.0.20.0070.0278.27
5.0.10.0070.0308.37
5.0.00.0030.0438.36
4.4.90.0070.0235.91
4.4.80.0030.0235.80
4.4.70.0030.0235.91
4.4.60.0070.0205.90
4.4.50.0070.0275.93
4.4.40.0030.0375.89
4.4.30.0200.0175.89
4.4.20.0030.0235.91
4.4.10.0100.0175.95
4.4.00.0100.0305.92
4.3.110.0100.0205.88
4.3.100.0070.0205.78
4.3.90.0070.0205.78
4.3.80.0100.0305.88
4.3.70.0030.0235.82
4.3.60.0030.0235.79
4.3.50.0030.0235.80
4.3.40.0000.0375.79
4.3.30.0070.0274.64
4.3.20.0070.0204.63
4.3.10.0030.0274.61
4.3.00.0130.0177.31