3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
string(29) "AARON'S INC??????????????????"
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 5.5.35
string(47) "AARON'S INC????????????????????????????????????"