3v4l.org

run code in 300+ PHP versions simultaneously
<?php // \u0130 $s = 'u\'ZENG\u0130N OL YADA U\u011eRUNDA \xd6L\''; if ( substr($s, 0, 2) == 'u\'' && substr($s, -1) == '\'' ) { $s = substr($s, 2, strlen($s) - 3); $s = preg_replace('/\\\\u([0-9a-f][0-9a-f][0-9a-f][0-9a-f])/', '&#x\1;', $s); $s = preg_replace('/\\\\x([0-9a-f][0-9a-f])/', '&#x\1;', $s); var_dump($s); var_dump(mb_convert_encoding($s, 'UTF-8', 'HTML-ENTITIES') ); } else { die('gestorben wegen: ' . $s); } var_dump(mb_convert_encoding('&#x0130;', 'UTF-8', 'HTML-ENTITIES') );
Output for git.master, git.master_jit, rfc.property-hooks
string(44) "ZENG&#x0130;N OL YADA U&#x011e;RUNDA &#xd6;L" string(28) "ZENGİN OL YADA UĞRUNDA ÖL" string(2) "İ"

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