3v4l.org

run code in 200+ php & hhvm versions
<?php $in = '\u00E3\u0081\u0082a'; $out = preg_replace_callback('/\\\\u[0-9A-F]{4}/', function ($matches) { return hex2bin(substr($matches[0], -2, 2)); }, $in); echo $out;