3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string_var="#OWNER_NAME# vous a envoyé une invitation à partager l'événement BuddyCalc #EVENTNAME# avec vous. Veuillez vérifier votre adresse e-mail que vous avez utilisée pour vous inscrire sur www.buddycalc.com"; echo Encoding::toUTF8($string_var); echo "<br>"; $enc=mb_detect_encoding($string_var, "UTF-8,ISO-8859-1"); echo iconv($enc, "UTF-8", $string_var);
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Class 'Encoding' not found in /in/7q5sp:3 Stack trace: #0 {main} thrown in /in/7q5sp on line 3
Process exited with code 255.
Output for 5.0.0 - 5.6.28
Fatal error: Class 'Encoding' not found in /in/7q5sp on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'encoding' in /in/7q5sp on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'encoding' in /in/7q5sp on line 3