<?php $str = 'Test emoji \U0001F607 \U0001F63C'; echo preg_replace_callback( '/\\\U([A-F0-9]+)/', function ($matches) { return mb_convert_encoding(hex2bin($matches[1]), 'UTF-8', 'UTF-32'); }, $str );
You have javascript disabled. You will not be able to edit any code.