3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php$prenom = 'éo marie chéarles';$nom = 'Léa Maji';$prenomEnMinuscule = \mb_strtolower($prenom, 'utf8');$prenom = \mb_strtoupper(\mb_substr($prenomEnMinuscule, 0, 1, 'utf8'), 'utf8').\mb_substr($prenomEnMinuscule, 1, null, 'utf8');echo $prenom.' '.mb_strtoupper($nom, 'utf8').PHP_EOL;
based on UKDmF
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.34
Parse error: syntax error, unexpected '$prenom' (T_VARIABLE) in /in/6IZq0 on line 1
Process exited with code 255.
Output for 5.4.0 - 5.4.32
<?php$prenom = 'éo marie chéarles';$nom = 'Léa Maji';$prenomEnMinuscule = \mb_strtolower($prenom, 'utf8');$prenom = \mb_strtoupper(\mb_substr($prenomEnMinuscule, 0, 1, 'utf8'), 'utf8').\mb_substr($prenomEnMinuscule, 1, null, 'utf8');echo $prenom.' '.mb_strtoupper($nom, 'utf8').PHP_EOL;