3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jis_bytes = '1b244224221b2842'; // 'あ' in ISO-2022-JP $jis_bytes_without_esc = '1b24422422'; // 'あ' in ISO-2022-JP without escape sequence var_dump(mb_check_encoding(hex2bin($jis_bytes), 'JIS')); var_dump(mb_check_encoding(hex2bin($jis_bytes_without_esc), 'JIS'));

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.120.0140.00617.54
8.4.110.0130.00819.43
8.4.100.0110.00917.45
8.4.90.0110.00920.42
8.4.80.0120.00718.66
8.4.70.0100.00517.98
8.4.60.0090.01118.92
8.4.50.0100.00920.36
8.4.40.0080.00317.43
8.4.30.0090.00018.89
8.4.20.0150.00619.90
8.4.10.0040.00423.74
8.3.250.0130.00616.36
8.3.240.0110.00916.46
8.3.230.0050.00316.34
8.3.220.0110.00618.98
8.3.210.0020.00618.22
8.3.200.0090.01016.65
8.3.190.0100.00818.41
8.3.180.0070.01216.56
8.3.170.0190.00020.45
8.3.160.0100.00717.07
8.3.150.0120.00618.65
8.3.140.0040.01116.28
8.3.130.0080.00016.42
8.3.120.0050.00518.96
8.3.110.0030.00616.62
8.3.100.0030.00616.38
8.3.90.0110.00726.77
8.3.80.0000.00917.97
8.3.70.0150.00318.18
8.3.60.0090.00618.43
8.3.50.0070.00716.32
8.3.40.0140.00023.64
8.3.30.0140.00018.72
8.3.20.0040.00424.18
8.3.10.0030.00524.66
8.3.00.0040.00426.16
8.2.290.0070.00316.70
8.2.280.0110.00718.32
8.2.270.0060.00320.36
8.2.260.0070.01016.81
8.2.250.0000.00918.50
8.2.240.0040.01418.98
8.2.230.0030.00620.94
8.2.220.0070.00737.54
8.2.210.0090.00926.77
8.2.200.0060.00316.63
8.2.190.0090.00918.63
8.2.180.0070.01416.75
8.2.170.0130.00319.04
8.2.160.0040.01122.96
8.2.150.0040.00425.66
8.2.140.0070.00424.66
8.2.130.0040.00426.16
8.2.120.0080.00020.87
8.2.110.0070.00319.60
8.2.100.0040.00817.98
8.2.90.0060.00318.22
8.2.80.0110.00019.28
8.2.70.0030.00617.75
8.2.60.0040.00417.75
8.2.50.0060.00317.75
8.2.40.0050.00319.48
8.2.30.0100.00017.68
8.2.20.0040.00917.66
8.2.10.0090.00517.75
8.2.00.0120.00617.63
8.1.330.0050.00516.26
8.1.320.0160.00816.04
8.1.310.0070.00016.57
8.1.300.0060.00318.64
8.1.290.0040.00730.84
8.1.280.0040.01125.92
8.1.270.0080.00024.66
8.1.260.0090.00626.35
8.1.250.0040.00428.09
8.1.240.0030.00722.22
8.1.230.0080.00421.16
8.1.220.0050.00317.74
8.1.210.0040.00419.03
8.1.200.0000.00817.36
8.1.190.0050.00317.38
8.1.180.0040.00418.10
8.1.170.0040.00417.62
8.1.160.0080.00817.62
8.1.150.0100.00617.63
8.1.140.0080.00817.62
8.1.130.0120.00317.67
8.1.120.0120.00317.67
8.1.110.0100.00517.64
8.1.100.0130.00317.70
8.1.90.0080.00817.70
8.1.80.0090.00617.70
8.1.70.0120.00317.69
8.1.60.0180.00017.69
8.1.50.0130.00417.63
8.1.40.0110.00717.73
8.1.30.0120.00417.74
8.1.20.0160.00317.82
8.1.10.0140.00217.61
8.1.00.0130.00417.66
8.0.300.0000.00820.06
8.0.290.0060.00316.75
8.0.280.0160.00016.79
8.0.270.0140.00216.85
8.0.260.0100.00516.79
8.0.250.0140.00016.93
8.0.240.0050.01016.80
8.0.230.0070.00716.91
8.0.220.0100.00316.84
8.0.210.0050.00916.82
8.0.200.0060.00916.91
8.0.190.0070.00716.80
8.0.180.0140.00016.98
8.0.170.0140.00016.93
8.0.160.0110.00316.98
8.0.150.0120.00216.85
8.0.140.0090.00616.96
8.0.130.0130.00316.86
8.0.120.0120.00316.77
8.0.110.0120.00016.87
8.0.100.0030.01016.77
8.0.90.0100.00316.87
8.0.80.0140.00016.89
8.0.70.0150.00016.77
8.0.60.0030.00516.87
8.0.50.0060.00616.74
8.0.30.0030.00516.84
8.0.20.0080.00016.82
8.0.10.0050.00316.95

preferences:
28.41 ms | 403 KiB | 5 Q