3v4l.org

run code in 300+ PHP versions simultaneously
<?php $some_string = "ннннн ннннн"; $arra_c = array("ASCII", "Windows-1252", "ISO-8859-15", "ISO-8859-1", "ISO-8859-6", "CP1256"); foreach($arra_c as $k => $v){ var_dump(iconv("UTF-8", $v, $some_string)); } 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
Notice: iconv(): Detected an illegal character in input string in /in/gn36o on line 9 bool(false) Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "Windows-1252" is not allowed in /in/gn36o on line 9 bool(false) Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-15" is not allowed in /in/gn36o on line 9 bool(false) Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-1" is not allowed in /in/gn36o on line 9 bool(false) Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "ISO-8859-6" is not allowed in /in/gn36o on line 9 bool(false) Warning: iconv(): Wrong encoding, conversion from "UTF-8" to "CP1256" is not allowed in /in/gn36o on line 9 bool(false) string(5) "UTF-8" int(75)

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:
71.95 ms | 407 KiB | 5 Q