3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php for ($c = 0; $c <= 0x1F; $c++) { var_dump(utf8_encode(chr($c))); } var_dump('-----------------------'); for ($c = 0x7F; $c <= 0x9F; $c++) { var_dump(utf8_encode(chr($c))); }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.13.2, 7.0.0 - 7.1.0
string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) " " string(1) " " string(1) " " string(1) " " string(1) " " string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(1) "" string(23) "-----------------------" string(1) "" string(2) "€" string(2) "" string(2) "‚" string(2) "ƒ" string(2) "„" string(2) "…" string(2) "†" string(2) "‡" string(2) "ˆ" string(2) "‰" string(2) "Š" string(2) "‹" string(2) "Œ" string(2) "" string(2) "Ž" string(2) "" string(2) "" string(2) "‘" string(2) "’" string(2) "“" string(2) "”" string(2) "•" string(2) "–" string(2) "—" string(2) "˜" string(2) "™" string(2) "š" string(2) "›" string(2) "œ" string(2) "" string(2) "ž" string(2) "Ÿ"