3v4l.org

run code in 300+ PHP versions simultaneously
<?php function mbStringToArray ($string) { $strlen = mb_strlen($string); while ($strlen) { $array[] = mb_substr($string,0,1,"UTF-8"); $string = mb_substr($string,1,$strlen,"UTF-8"); $strlen = mb_strlen($string); } return $array; } $a = "बिक्रम"; $lol = mbStringToArray($a); $yo = "\u093F"; echo json_decode($yo); $test = json_decode('"\u093F"'); function overall (){ $hindi = array("\u093E","\u093F","\u0945","\u0946","\u0947","\u0948","\u0949","\u094A","\u094B","\u094C","\u094D"); for($i = 0; $i<count($hindi); $i++){ echo json_decode('$hindi[$i]'); } } echo $test."---".$lol[1]; if($test == $lol[1]){ echo "Game"; } else echo "No game"; //overall(); ?>
Output for git.master, git.master_jit, rfc.property-hooks
ि---िGame

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