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')); var_dump(mb_check_encoding(hex2bin($jis_bytes_without_esc), 'ISO-2022-JP-2004'));

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.5.10.0090.00920.38
8.5.00.0120.00919.78
8.4.160.0070.01519.70
8.4.150.0030.00014.05
8.4.140.0130.01017.68
8.4.130.0020.00617.88
8.4.120.0110.00520.66
8.4.110.0060.00222.55
8.4.100.0140.00617.43
8.4.90.0160.00718.45
8.4.80.0160.00417.61
8.4.70.0130.00817.60
8.4.60.0130.00718.43
8.4.50.0100.00617.71
8.4.40.0120.00620.59
8.4.30.0030.00620.65
8.4.20.0080.00019.48
8.4.10.0060.00323.94
8.3.280.0140.00718.29
8.3.270.0120.00716.28
8.3.260.0060.00416.72
8.3.250.0080.00519.04
8.3.240.0070.01016.41
8.3.230.0050.00416.57
8.3.220.0060.00217.28
8.3.210.0140.00816.54
8.3.200.0040.00416.76
8.3.190.0040.00517.05
8.3.180.0110.00816.41
8.3.170.0030.01418.93
8.3.160.0080.00020.29
8.3.150.0170.00316.73
8.3.140.0040.00418.82
8.3.130.0000.00816.73
8.3.120.0160.00020.79
8.3.110.0080.00016.54
8.3.100.0030.00618.07
8.3.90.0060.00326.77
8.3.80.0060.00317.97
8.3.70.0090.01316.74
8.3.60.0040.01116.63
8.3.50.0150.00018.48
8.3.40.0140.00719.95
8.3.30.0120.00618.44
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0050.00520.34
8.2.280.0120.00818.64
8.2.270.0140.00317.20
8.2.260.0150.00016.63
8.2.250.0050.00318.52
8.2.240.0000.00918.96
8.2.230.0040.00420.94
8.2.220.0040.00424.06
8.2.210.0120.00626.77
8.2.200.0100.00018.66
8.2.190.0000.01816.58
8.2.180.0130.00316.63
8.2.170.0140.00022.96
8.2.160.0060.00922.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0000.00726.16
8.2.120.0080.00026.16
8.2.110.0080.00321.23
8.2.100.0030.00917.97
8.2.90.0040.00418.03
8.2.80.0040.00418.22
8.2.70.0000.00817.75
8.2.60.0000.00818.00
8.2.50.0000.00917.88
8.2.40.0090.00019.41
8.2.30.0120.00417.75
8.2.20.0140.00317.63
8.2.10.0040.01217.62
8.2.00.0140.00317.74
8.1.330.0130.00720.25
8.1.320.0100.00916.18
8.1.310.0030.01018.74
8.1.300.0070.01118.14
8.1.290.0060.00330.84
8.1.280.0140.00725.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0050.00228.09
8.1.240.0030.00622.64
8.1.230.0080.00321.15
8.1.220.0030.00617.74
8.1.210.0030.00619.09
8.1.200.0060.00317.48
8.1.190.0070.00417.25
8.1.180.0000.00818.10
8.1.170.0040.00417.68
8.1.160.0080.00817.62
8.1.150.0100.00717.62
8.1.140.0120.00417.62
8.1.130.0130.00317.63
8.1.120.0050.01117.62
8.1.110.0120.00417.63
8.1.100.0140.00217.62
8.1.90.0130.00317.62
8.1.80.0170.00017.62
8.1.70.0070.01117.62
8.1.60.0150.00417.63
8.1.50.0130.00517.62
8.1.40.0120.00617.72
8.1.30.0110.00817.62
8.1.20.0120.00517.75
8.1.10.0160.00217.62
8.1.00.0140.00317.62
8.0.300.0040.00420.03
8.0.290.0000.00716.88
8.0.280.0100.00517.62
8.0.270.0150.00417.62
8.0.260.0140.00017.62
8.0.250.0170.00017.62
8.0.240.0170.00017.62
8.0.230.0120.00917.62
8.0.220.0160.00017.62
8.0.210.0050.01117.62
8.0.200.0130.00317.62
8.0.190.0160.00017.62
8.0.180.0110.00617.62
8.0.170.0120.00417.62
8.0.160.0050.01117.62
8.0.150.0110.00517.62
8.0.140.0160.00017.62
8.0.130.0110.00517.62
8.0.120.0140.00417.62
8.0.110.0090.00617.62
8.0.100.0100.00717.62
8.0.90.0100.00717.62
8.0.80.0080.00817.62
8.0.70.0160.00017.62
8.0.60.0160.00017.62
8.0.50.0100.00717.62
8.0.30.0090.00917.62
8.0.20.0180.00217.62
8.0.10.0170.00017.62

preferences:
122.93 ms | 406 KiB | 6 Q