3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php setlocale(LC_ALL, 'fr_FR'); $text = "Test êéest"; $text = preg_replace('~[^\\pL\d]+~u', '-', $text); $text = trim($text, '-'); $text = iconv('UTF-8','ASCII//TRANSLIT', $text); $text = strtoupper($text); echo $text;
Output for 5.0.5 - 5.5.34, 5.6.0 - 5.6.20, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.5, 7.0.12 - 7.1.0
TEST-??EST
Output for 7.0.6
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/RjjAO:6 Stack trace: #0 {main} thrown in /in/RjjAO on line 6
Process exited with code 255.
Output for 5.5.35, 5.6.21
Fatal error: Call to undefined function iconv() in /in/RjjAO on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.4
Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/RjjAO on line 4
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: iconv() in /in/RjjAO on line 6
Process exited with code 255.
Output for 4.4.0 - 4.4.4
Fatal error: Call to undefined function: iconv() in /in/RjjAO on line 6
Process exited with code 255.
Output for 4.3.11
Warning: preg_replace(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/RjjAO on line 4 Fatal error: Call to undefined function: iconv() in /in/RjjAO on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.10
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/RjjAO on line 4 Fatal error: Call to undefined function: iconv() in /in/RjjAO on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /in/RjjAO on line 4 Fatal error: Call to undefined function: iconv() in /in/RjjAO on line 6