3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php mb_internal_encoding('UTF-8'); $value = 'g' . chr(0xa4) .'eld'; var_dump(mb_substitute_character('entity'), mb_convert_encoding($value, 'UTF-8', mb_detect_encoding($value, mb_detect_order(), true), mb_substitute_character()); var_dump(mb_substitute_character('long'), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character()); var_dump(mb_substitute_character(0x3013), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character()); var_dump(mb_substitute_character('none'), mb_convert_encoding($value, 'UTF-8', 'ISO-8859-15'), mb_substitute_character());
Output for 5.3.0 - 5.4.4
Parse error: syntax error, unexpected ';' in /in/LYRJg on line 7
Process exited with code 255.