3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo json_decode('"\u201E"'); // create a pair of curly quotes using \u which json_decode can handle ... $lefty = json_decode('"\u201C"'); $righty = json_decode('"\u201D"'); $text = $lefty . "Testing" . $righty; echo $text,"\n"; // ... but POCRE can't handle \u so use hex codes $text = mb_ereg_replace('[\xE2\x80]+(\x9C|\x9D)+','"',$text); echo "\n",$text;
Output for git.master, git.master_jit, rfc.property-hooks
„“Testing” Warning: mb_ereg_replace(): mbregex compile err: too short multibyte code string in /in/flvnq on line 10

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:
27.74 ms | 405 KiB | 5 Q