3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = 'García'; if(utf8_encode(utf8_decode($input))== $input) $input = utf8_decode($input) . '1'; else if(utf8_decode($input)== $input) $input = utf8_encode($input) . '2'; echo $input; print "\n"; $input = 'García'; echo $input; print "\n"; echo utf8_decode($input); print "\n"; echo utf8_encode($input); print "\n";
based on Bg6I6
Output for 4.3.0 - 7.3.0rc4
Garc�a1 García García García