3v4l.org

run code in 300+ PHP versions simultaneously
<?php $json = array( "Sample" => array( "context" => 'ěščřžýáí' ) ); $encoded = json_encode($json); var_dump($encoded); $unescaped = preg_replace_callback('/\\\u(\w{4})/', function ($matches) { return html_entity_decode('&#x' . $matches[1] . ';', ENT_COMPAT, 'UTF-8'); }, $encoded); var_dump($unescaped);
Output for git.master, git.master_jit, rfc.property-hooks
string(73) "{"Sample":{"context":"\u011b\u0161\u010d\u0159\u017e\u00fd\u00e1\u00ed"}}" string(41) "{"Sample":{"context":"ěščřžýáí"}}"

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