3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $s = 'Hello world!'; for($i = 0; $i < strlen($s); $i++) { var_dump(decbin(ord($s[$i]))); }
Output for 4.3.0 - 7.2.0
string(7) "1001000" string(7) "1100101" string(7) "1101100" string(7) "1101100" string(7) "1101111" string(6) "100000" string(7) "1110111" string(7) "1101111" string(7) "1110010" string(7) "1101100" string(7) "1100100" string(6) "100001"