3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $firstName='kéké'; $lastName='kéké'; $firstName = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $firstName); $lastName = iconv('UTF-8', 'ASCII//TRANSLIT//IGNORE', $lastName); setLocale(LC_ALL, $oldLocale); $username = strtolower( substr( preg_replace('/\s/', '', $firstName[0].$lastName), 0, 8 ) );
Output for 5.0.4 - 5.5.34, hhvm-3.10.0 - 3.13.2, 7.0.14 - 7.1.0
Notice: Undefined variable: oldLocale in /in/iN3EP on line 8
Output for 7.0.0 - 7.0.11
Fatal error: Uncaught Error: Call to undefined function iconv() in /in/iN3EP:5 Stack trace: #0 {main} thrown in /in/iN3EP on line 5
Process exited with code 255.
Output for 5.5.35 - 5.6.26
Fatal error: Call to undefined function iconv() in /in/iN3EP on line 5
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: oldLocale in /in/iN3EP on line 8
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: iconv() in /in/iN3EP on line 5
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: iconv() in /in/iN3EP on line 5
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: iconv() in /in/iN3EP on line 5