3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( $conv = mb_convert_encoding( $bin = hex2bin("ffb383"), "UTF-8", "GB18030" ), mb_check_encoding($bin, "GB18030"), bin2hex(mb_convert_encoding($conv, "GB18030", "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).

VersionSystem time (s)User time (s)Memory (MiB)
8.4.20.0100.00719.88
8.4.10.0130.00323.55
8.3.140.0050.00316.89
8.3.130.0030.00618.43
8.3.120.0190.00320.86
8.3.110.0030.00820.94
8.3.100.0070.00416.66
8.3.90.0060.00326.77
8.3.80.0030.00617.97
8.3.70.0200.00316.75
8.3.60.0140.00416.63
8.3.50.0070.01018.66
8.3.40.0100.00320.17
8.3.30.0090.00618.93
8.3.20.0040.00424.18
8.3.10.0000.00824.66
8.3.00.0000.00826.16
8.2.260.0040.00416.48
8.2.250.0040.00416.91
8.2.240.0090.00018.80
8.2.230.0060.00322.58
8.2.220.0050.00324.06
8.2.210.0000.00826.77
8.2.200.0060.00316.63
8.2.190.0100.01016.63
8.2.180.0070.01025.92
8.2.170.0040.01218.91
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.13
8.2.110.0060.00320.65
8.2.100.0040.00818.03
8.2.90.0040.00418.34
8.2.80.0040.00419.27
8.2.70.0050.00648.59
8.2.60.0070.00933.09
8.2.50.0100.00633.10
8.2.40.0110.00433.69
8.2.30.0110.00433.25
8.2.20.0050.00733.92
8.2.10.0100.00533.13
8.2.00.0120.00233.38
8.1.310.0060.00616.79
8.1.300.0150.00418.44
8.1.290.0060.00618.88
8.1.280.0060.01225.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0000.00728.09
8.1.240.0060.00322.59
8.1.230.0120.00021.23
8.1.220.0000.00817.77
8.1.210.0050.00318.95
8.1.200.0130.00348.23
8.1.190.0100.00632.70
8.1.180.0120.00332.95
8.1.170.0130.00333.02
8.1.160.0110.00433.21
8.1.150.0070.00733.20
8.1.140.0090.00432.81
8.1.130.0070.01032.82
8.1.120.0060.00932.92
8.1.110.0130.00332.84
8.1.100.0100.00632.85
8.1.90.0130.00232.96
8.1.80.0090.00732.67
8.1.70.0110.00332.85
8.1.60.0110.00732.88
8.1.50.0120.00532.86
8.1.40.0110.00632.91
8.1.30.0120.00532.97
8.1.20.0120.00532.95
8.1.10.0110.00532.83
8.1.00.0130.00732.91
8.0.300.0060.00319.98
8.0.290.0040.00763.68
8.0.280.0090.00632.71
8.0.270.0050.00932.59
8.0.260.0110.00532.32
8.0.250.0130.00332.29
8.0.240.0110.00632.29
8.0.230.0130.00432.24
8.0.220.0130.00432.30
8.0.210.0100.00532.28
8.0.200.0100.00632.36
8.0.190.0120.00532.24
8.0.180.0130.00432.25
8.0.170.0110.00632.30
8.0.160.0110.00532.40
8.0.150.0110.00632.30
8.0.140.0110.00532.27
8.0.130.0100.00732.23
8.0.120.0130.00532.25
8.0.110.0120.00432.18
8.0.100.0130.00332.30
8.0.90.0090.00732.31
8.0.80.0130.00332.21
8.0.70.0120.00532.26
8.0.60.0120.00532.25
8.0.50.0110.00532.28
8.0.30.0100.00732.33
8.0.20.0100.00632.39
8.0.10.0110.00632.27
7.4.330.0110.00231.72
7.4.320.0110.00632.17
7.4.300.0110.00632.15
7.4.290.0120.00332.09
7.4.280.0100.00632.18
7.4.270.0120.00432.11
7.4.260.0120.00532.18
7.4.250.0130.00332.02
7.4.240.0110.00432.11
7.4.230.0130.00332.12
7.4.220.0110.00532.13
7.4.210.0120.00432.09
7.4.200.0080.00632.11
7.4.190.0110.00332.20
7.4.180.0100.00532.19
7.4.160.0130.00232.14
7.4.150.0100.00432.16
7.4.140.0100.00432.19
7.4.130.0110.00431.89
7.4.120.0100.00532.09
7.4.110.0070.00632.16
7.4.100.0120.00332.08
7.4.90.0080.00632.17
7.4.80.0140.00231.99
7.4.70.0100.00432.13
7.4.60.0120.00332.14
7.4.50.0080.00732.01
7.4.40.0100.00531.96
7.4.30.0080.00732.10
7.4.20.0130.00232.02
7.4.10.0110.00432.03
7.4.00.0090.00632.07

preferences:
29.97 ms | 403 KiB | 5 Q