3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utf8Str = "❶❷❸❹❺"; $sjisStr = mb_convert_encoding($utf8Str, 'SJIS-mac'); echo(mb_detect_encoding($sjisStr, ['UTF-8','SJIS-mac', 'SJIS-win', 'SJIS']));

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).

VersionSystem time (s)User time (s)Memory (MiB)
8.1.20.0030.00517.86
8.1.10.0070.00417.71
8.1.00.0080.00017.63
8.0.150.0040.00416.83
8.0.140.0000.00716.88
8.0.130.0050.00013.43
8.0.120.0000.00716.86
8.0.110.0060.00316.92
8.0.100.0000.00716.86
8.0.90.0000.00716.82
8.0.80.0030.01216.88
8.0.70.0060.00316.84
8.0.60.0000.00716.98
8.0.50.0030.00316.89
8.0.30.0130.00717.30
8.0.20.0140.00917.23
8.0.10.0000.00717.05
8.0.00.0040.01517.09
7.4.270.0040.00816.69
7.4.260.0050.00013.35
7.4.250.0030.00316.68
7.4.240.0070.00016.65
7.4.230.0000.00716.71
7.4.220.0020.00516.78
7.4.210.0070.01116.72
7.4.200.0080.00016.69
7.4.130.0090.00916.54
7.4.120.0160.00516.58
7.4.110.0070.01016.65
7.4.100.0070.01916.45
7.4.90.0120.00616.57
7.4.80.0060.01316.68
7.4.70.0090.00916.43
7.4.60.0030.01916.61
7.4.50.0160.00816.57
7.4.40.0120.00616.53
7.4.30.0130.00916.64
7.4.20.0040.01516.52
7.4.10.0120.00616.49
7.4.00.0100.01316.82
7.3.330.0040.00416.37
7.3.320.0030.00313.01
7.3.310.0000.00716.34
7.3.300.0030.00316.17
7.3.290.0090.00716.29
7.3.260.0150.00616.48
7.3.230.0070.01016.25
7.3.220.0070.01316.38
7.3.210.0090.00916.46
7.3.200.0060.01216.38
7.3.190.0150.00316.42
7.3.180.0100.01016.46
7.3.170.0040.01616.30
7.3.160.0070.01116.58
7.3.150.0100.01016.47
7.3.140.0140.00416.27
7.3.130.0060.01216.32
7.3.120.0030.01416.35
7.3.110.0100.01016.21
7.3.100.0070.01116.33
7.3.90.0070.01116.61
7.3.80.0060.01216.42
7.3.70.0090.00916.25
7.3.60.0120.00616.40
7.3.50.0100.01016.27
7.3.40.0040.01416.34
7.3.30.0060.01216.18
7.3.20.0160.00316.52
7.3.10.0120.00616.30
7.3.00.0150.00416.36
7.2.330.0080.01216.50
7.2.320.0100.01016.58
7.2.310.0110.01416.73
7.2.300.0190.00016.59
7.2.290.0060.01216.60
7.2.280.0090.01216.76
7.2.270.0050.01416.77
7.2.260.0090.01316.81
7.2.250.0080.01216.76
7.2.240.0030.01816.76
7.2.230.0160.00316.36
7.2.220.0140.00716.54
7.2.210.0120.00616.52
7.2.200.0160.00316.63
7.2.190.0130.00716.63
7.2.180.0130.01016.52
7.2.170.0030.01716.41
7.2.160.0130.01316.56
7.2.150.0030.01616.71
7.2.140.0100.01316.67
7.2.130.0120.01516.83
7.2.120.0070.01116.55
7.2.110.0100.01416.86
7.2.100.0100.01016.65
7.2.90.0190.00616.62
7.2.80.0030.01716.75
7.2.70.0080.01716.86
7.2.60.0100.01016.65
7.2.50.0090.00916.62
7.2.40.0110.01116.79
7.2.30.0140.00716.80
7.2.20.0040.01716.69
7.2.10.0120.00916.69
7.2.00.0150.00816.64

preferences:
15.83 ms | 455 KiB | 5 Q