3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $some_string = "ннннн ннннн"; $arra_c = array( '1' ); foreach($arra_c as $k => $v){ var_dump(iconv("UTF-8", "ISO-8859-1//TRANSLIT", $some_string)); } var_dump(mb_detect_encoding($some_string)); var_dump(strlen(json_encode(array('message' => $some_string))));

Shows result from various feature-branches currently under review from the php developers. Contact me to have additional branches featured.

Output for Typed properties v2
string(11) "????? ?????" string(5) "UTF-8" int(75)
Output for Array change keys
string(11) "????? ?????" string(5) "UTF-8" int(75)
Output for Lexical anon
string(11) "????? ?????" string(5) "UTF-8" int(75)

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