3v4l.org

run code in 300+ PHP versions simultaneously
<?php function jsonRemoveUnicodeSequences($struct) { return preg_replace_callback("/\\\\u([a-f0-9]{4})/e", "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))", json_encode($struct)); } echo jsonRemoveUnicodeSequences("http\u00253A\u00252F\u00252Fwww.splicecommunity.com\u00252Fmedia\u00252F5735709\u00252Fadbne_hero-1.jpg");
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught TypeError: preg_replace_callback(): Argument #2 ($callback) must be a valid callback, function "iconv('UCS-4LE','UTF-8',pack('V', hexdec('U$1')))" not found or invalid function name in /in/aUd1h:4 Stack trace: #0 /in/aUd1h(4): preg_replace_callback('/\\\\u([a-f0-9]{4...', 'iconv('UCS-4LE'...', '"http\\\\u00253A\\...') #1 /in/aUd1h(7): jsonRemoveUnicodeSequences('http\\u00253A\\u0...') #2 {main} thrown in /in/aUd1h on line 4
Process exited with code 255.

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