3v4l.org

run code in 300+ PHP versions simultaneously
<?php $crap = "{\"\u200e\u206a\u200f\u200e\u202d\u206f\u200c\u206a\u202c\u202b\u200f\u206f\u202b\u206e\u206e\u202b\u206e\u202e\u206c\u202b\u206d\u200e\u202a\u206d\u200b\u206c\u206a\u202e\u206b\u200b\u200f\u200b\u202d\u202d\u206f\u206b\u200c\u206a\u206f\u206b\u202e\":32526155,\"\u200c\u200b\u200f\u206c\u206f\u200c\u206f\u202e\u200e\u202c\u206c\u202c\u202a\u200f\u202d\u206b\u206d\u202a\u206b\u202a\u200e\u200c\u202a\u206e\u206e\u206a\u202c\u200b\u206e\u206d\u200f\u200b\u206a\u206c\u206b\u206d\u206c\u206c\u202b\u206c\u202e\":\"868259025153662\",\"\u202c\u200b\u206a\u202d\u202b\u202b\u202c\u202e\u200d\u200c\u202e\u206f\u202c\u206f\u206f\u206d\u202d\u202a\u200c\u206a\u206d\u200c\u202a\u206a\u206a\u200c\u206a\u202a\u206d\u206f\u200f\u202e\u202c\u202e\u200c\u202b\u206d\u206f\u206f\u202b\u202e\":\"25474220\"}"; function charset_decode_utf_8 ($string) { /* Only do the slow convert if there are 8-bit characters */ /* avoid using 0xA0 (\240) in ereg ranges. RH73 does not like that */ if (!preg_match("/[\200-\237]/", $string) && !preg_match("/[\241-\377]/", $string) ) { return $string; } // decode three byte unicode characters $string = preg_replace("/([\340-\357])([\200-\277])([\200-\277])/e", "'&#'.((ord('\\1')-224)*4096 + (ord('\\2')-128)*64 + (ord('\\3')-128)).';'", $string ); // decode two byte unicode characters $string = preg_replace("/([\300-\337])([\200-\277])/e", "'&#'.((ord('\\1')-192)*64+(ord('\\2')-128)).';'", $string ); return $string; } $str = charset_decode_utf_8($crap); echo $str;
Output for git.master, git.master_jit, rfc.property-hooks
{"\u200e\u206a\u200f\u200e\u202d\u206f\u200c\u206a\u202c\u202b\u200f\u206f\u202b\u206e\u206e\u202b\u206e\u202e\u206c\u202b\u206d\u200e\u202a\u206d\u200b\u206c\u206a\u202e\u206b\u200b\u200f\u200b\u202d\u202d\u206f\u206b\u200c\u206a\u206f\u206b\u202e":32526155,"\u200c\u200b\u200f\u206c\u206f\u200c\u206f\u202e\u200e\u202c\u206c\u202c\u202a\u200f\u202d\u206b\u206d\u202a\u206b\u202a\u200e\u200c\u202a\u206e\u206e\u206a\u202c\u200b\u206e\u206d\u200f\u200b\u206a\u206c\u206b\u206d\u206c\u206c\u202b\u206c\u202e":"868259025153662","\u202c\u200b\u206a\u202d\u202b\u202b\u202c\u202e\u200d\u200c\u202e\u206f\u202c\u206f\u206f\u206d\u202d\u202a\u200c\u206a\u206d\u200c\u202a\u206a\u206a\u200c\u206a\u202a\u206d\u206f\u200f\u202e\u202c\u202e\u200c\u202b\u206d\u206f\u206f\u202b\u202e":"25474220"}

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