3v4l.org

run code in 500+ PHP versions simultaneously
<?php echo preg_replace_callback('~[\x{0022}\x{0027}\x{0080}-\x{ffff}]~u', function ($c) { return '&#' . IntlChar::ord($c[0]) . ';'; }, "Képzeld el PDF");
Output for 8.5.1 - 8.5.3
Fatal error: Uncaught Error: Class "IntlChar" not found in /in/7UFMq:4 Stack trace: #0 [internal function]: {closure:/in/7UFMq:3}(Array) #1 /in/7UFMq(3): preg_replace_callback('~[\\x{0022}\\x{00...', Object(Closure), 'K\xC3\xA9pzeld el PDF') #2 {main} thrown in /in/7UFMq on line 4
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0
K&#233;pzeld el PDF
Output for 5.6.0 - 5.6.40
Fatal error: Class 'IntlChar' not found in /in/7UFMq on line 4
Process exited with code 255.

preferences:
43.54 ms | 1978 KiB | 4 Q