3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(mb_check_encoding(hex2bin("1b284931323334351b2842"), "ISO-2022-JP")); // false is expected var_dump(mb_check_encoding(hex2bin("0e31323334350f"), "ISO-2022-JP")); // false is expected var_dump(mb_check_encoding(hex2bin("B1B2B3B4B5"), "ISO-2022-JP")); // false is expected echo "\n"; var_dump(mb_check_encoding(hex2bin("1b284931323334351b2842"), "JIS")); // true is expected var_dump(mb_check_encoding(hex2bin("0e31323334350f"), "JIS")); // true is expected var_dump(mb_check_encoding(hex2bin("B1B2B3B4B5"), "JIS")); // true is expected
Output for git.master, git.master_jit
bool(true) bool(true) bool(true) bool(true) bool(true) bool(true)
Output for rfc.property-hooks
bool(false) bool(false) bool(false) bool(true) bool(true) bool(true)

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
81.56 ms | 406 KiB | 5 Q