3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo preg_replace_callback("#%u([0-9A-F]{1,4})#i", create_function('$matches', 'return dec_to_utf8(hexdec($matches[1]));'), '%u01C0');
based on FfDH4
Output for 7.2.0 - 7.2.6
Deprecated: Function create_function() is deprecated in /in/s7BhT on line 3 Fatal error: Uncaught Error: Call to undefined function dec_to_utf8() in /in/s7BhT(3) : runtime-created function:1 Stack trace: #0 [internal function]: __lambda_func(Array) #1 /in/s7BhT(3): preg_replace_callback('#%u([0-9A-F]{1,...', '\x00lambda_1', '%u01C0') #2 {main} thrown in /in/s7BhT(3) : runtime-created function on line 1
Process exited with code 255.
Output for 7.0.0 - 7.1.20
Fatal error: Uncaught Error: Call to undefined function dec_to_utf8() in /in/s7BhT(3) : runtime-created function:1 Stack trace: #0 [internal function]: __lambda_func(Array) #1 /in/s7BhT(3): preg_replace_callback('#%u([0-9A-F]{1,...', '\x00lambda_1', '%u01C0') #2 {main} thrown in /in/s7BhT(3) : runtime-created function on line 1
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Call to undefined function dec_to_utf8() in :1 Stack trace: #0 /in/s7BhT(3):
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function dec_to_utf8() in /in/s7BhT(3) : runtime-created function on line 1
Process exited with code 255.