3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump( mb_convert_encoding( $bin = hex2bin("8bcb9b46e6fc9bac82998f818aca816287b38aa9"), "UTF-8", "SJIS-mac" ), mb_check_encoding($bin, "SJIS-mac") );

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.0030.00619.65
8.4.10.0100.00723.64
8.3.150.0110.00717.05
8.3.140.0170.00016.62
8.3.130.0040.01118.68
8.3.120.0140.00418.84
8.3.110.0100.00020.94
8.3.100.0000.01024.06
8.3.90.0080.00026.77
8.3.80.0070.01016.63
8.3.70.0110.00416.58
8.3.60.0150.00318.30
8.3.50.0030.01418.57
8.3.40.0040.01120.27
8.3.30.0070.00718.68
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.260.0090.00017.19
8.2.250.0030.00516.66
8.2.240.0040.00417.12
8.2.230.0040.00422.58
8.2.220.0000.00937.54
8.2.210.0040.00426.77
8.2.200.0030.00918.54
8.2.190.0040.01116.58
8.2.180.0040.01125.92
8.2.170.0070.00722.96
8.2.160.0070.00722.96
8.2.150.0040.00425.66
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.28
8.2.110.0080.00321.23
8.2.100.0000.01118.22
8.2.90.0060.00319.95
8.2.80.0080.00018.05
8.2.70.0050.00518.05
8.2.60.0030.00618.34
8.2.50.0050.00318.16
8.2.40.0050.00219.34
8.2.30.0030.00518.03
8.2.20.0000.00720.56
8.2.10.0000.00818.04
8.2.00.0000.00719.34
8.1.310.0040.00418.42
8.1.300.0000.00818.24
8.1.290.0090.00030.84
8.1.280.0160.00625.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0000.00822.19
8.1.230.0110.00021.03
8.1.220.0040.00417.74
8.1.210.0060.00318.77
8.1.200.0060.00317.47
8.1.190.0070.00317.36
8.1.180.0090.00018.10
8.1.170.0060.00318.78
8.1.160.0000.00719.05
8.1.150.0070.00018.67
8.1.140.0040.00417.64
8.1.130.0040.00417.61
8.1.120.0100.00517.54
8.1.110.0050.01017.54
8.1.100.0050.01017.51
8.1.90.0120.00317.55
8.1.80.0130.00317.55
8.1.70.0110.00417.45
8.1.60.0100.00817.65
8.1.50.0100.00717.54
8.1.40.0120.00617.49
8.1.30.0140.00417.65
8.1.20.0140.00317.62
8.1.10.0090.00917.66
8.1.00.0060.01217.52
8.0.300.0040.00419.69
8.0.290.0040.00416.75
8.0.280.0030.00318.58
8.0.270.0070.00018.10
8.0.260.0030.00316.86
8.0.250.0100.00516.97
8.0.240.0000.01416.89
8.0.230.0080.00816.91
8.0.220.0120.00416.90
8.0.210.0110.00516.82
8.0.200.0110.00316.89
8.0.190.0110.00316.86
8.0.180.0110.00416.88
8.0.170.0040.00916.99
8.0.160.0140.00016.82
8.0.150.0070.00716.95
8.0.140.0000.01416.83
8.0.130.0100.00416.99
8.0.120.0120.00316.82
8.0.110.0090.00616.89
8.0.100.0050.01016.86
8.0.90.0140.00016.90
8.0.80.0140.00016.97
8.0.70.0050.00916.83
8.0.60.0100.00516.87
8.0.50.0090.00516.95
8.0.30.0110.00316.91
8.0.20.0110.00317.02
8.0.10.0070.00717.08
7.4.330.0060.00015.55
7.4.320.0050.00616.48
7.4.300.0110.00516.70
7.4.290.0080.00816.70
7.4.280.0130.00416.63
7.4.270.0130.00316.60
7.4.260.0120.00416.46
7.4.250.0120.00516.58
7.4.240.0120.00316.75
7.4.230.0080.00816.68
7.4.220.0000.01016.63
7.4.210.0000.00716.70
7.4.200.0020.00416.66
7.4.190.0000.00716.79
7.4.180.0040.00216.73
7.4.160.0000.01016.48
7.4.150.0050.00516.47
7.4.140.0040.00416.56
7.4.130.0040.00416.48
7.4.120.0040.00416.47
7.4.110.0060.00316.50
7.4.100.0070.00316.62
7.4.90.0000.00916.58
7.4.80.0000.01116.56
7.4.70.0060.00616.49
7.4.60.0050.00516.62
7.4.50.0120.00016.25
7.4.40.0000.01116.43
7.4.30.0120.00016.35
7.4.20.0090.00316.50
7.4.10.0090.00316.42
7.4.00.0050.00516.51

preferences:
31.43 ms | 403 KiB | 5 Q