3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = "AARON'S INC                  "; /*$array = str_split($string); foreach($array as $char) { var_dump($char); var_dump(ord($char)); printf("\n\n"); } */ $converted = mb_convert_encoding($string, "ASCII"); var_dump($converted);
based on WJ4AQ
Output for 5.6.7 - 7.1.10
string(29) "AARON'S INC??????????????????"
Output for 4.3.0 - 5.5.35
string(47) "AARON'S INC????????????????????????????????????"