3v4l.org

run code in 300+ PHP versions simultaneously
<?php $text = "%u0423%u0432%u0430%u0436%u0430%u0435%u043C%u044B%u0435"; //script from http://zizi.kxup.com/ //javascript unesape function unescape($str) { $str = rawurldecode($str); preg_match_all("/(?:%u.{4})|&#x.{4};|&#\d+;|.+/U",$str,$r); $ar = $r[0]; print_r($ar); foreach($ar as $k=>$v) { if(substr($v,0,2) == "%u") $ar[$k] = iconv("UCS-2","UTF-8",pack("H4",substr($v,-4))); elseif(substr($v,0,3) == "&#x") $ar[$k] = iconv("UCS-2","UTF-8",pack("H4",substr($v,3,-1))); elseif(substr($v,0,2) == "&#") { echo substr($v,2,-1)."<br>"; $ar[$k] = iconv("UCS-2","UTF-8",pack("n",substr($v,2,-1))); } } return join("",$ar); } echo unescape($text) ?>
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => %u0423 [1] => %u0432 [2] => %u0430 [3] => %u0436 [4] => %u0430 [5] => %u0435 [6] => %u043C [7] => %u044B [8] => %u0435 ) ⌄㈄〄㘄〄㔄㰄䬄㔄

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