3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = "Ку ку"; $arra_c = array("ASCII//IGNORE", "Windows-1252//IGNORE", "ISO-8859-15//IGNORE", "ISO-8859-1//IGNORE", "ISO-8859-6//IGNORE", "CP1256//IGNORE"); foreach($arra_c as $k => $v){ var_dump(mb_convert_encoding($some_string,$v,"UTF-8" )); } var_dump(mb_detect_encoding($some_string)); var_dump(strlen(json_encode(array('message' => $some_string))));
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught ValueError: mb_convert_encoding(): Argument #2 ($to_encoding) must be a valid encoding, "ASCII//IGNORE" given in /in/OEk9F:9 Stack trace: #0 /in/OEk9F(9): mb_convert_encoding('\xD0\x9A\xD1\x83 \xD0\xBA\xD1\x83', 'ASCII//IGNORE', 'UTF-8') #1 {main} thrown in /in/OEk9F on line 9
Process exited with code 255.

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:
40.29 ms | 401 KiB | 8 Q