3v4l.org

run code in 300+ PHP versions simultaneously
<?php $User = array( 'Name' => "Hans-Peterµµ", 'Contacts' => array(1, 2, 3, 4, 5, 6, 7, 42), 'Active' => 1 ); $J = json_encode($User); foreach ($J as &$val) { $val = preg_replace_callback('/\\\\u([0-9a-f]{4})/i', function($matches) { return mb_convert_encoding(pack('H*', $matches[1]), 'UTF-8', 'UTF-16'); }, $val); } echo $J;
Output for git.master, git.master_jit, rfc.property-hooks
Warning: foreach() argument must be of type array|object, string given in /in/skmaT on line 7 {"Name":"Hans-Peter\u00b5\u00b5","Contacts":[1,2,3,4,5,6,7,42],"Active":1}

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