3v4l.org

run code in 300+ PHP versions simultaneously
<?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;

preferences:
53.31 ms | 402 KiB | 5 Q