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]{4})/, '', $s); var_dump($s); } else { die('gestorben wegen: ' . $s); } var_dump(mb_convert_encoding('&#x0130;', 'UTF-8', 'HTML-ENTITIES') );
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '', $s);' (T_CONSTANT_ENCAPSED_STRING) in /in/hhEQL on line 11
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /in/hhEQL on line 11
Process exited with code 255.

preferences:
188.47 ms | 1394 KiB | 60 Q