3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php FUNCTION bin2text($bin_str) { $text_str = ''; $chars = EXPLODE("\n", CHUNK_SPLIT(STR_REPLACE("\n", '', $bin_str), 8)); $_I = COUNT($chars); FOR($i = 0; $i < $_I; $text_str .= CHR(BINDEC($chars[$i])), $i ); RETURN $text_str; }
based on EbODh
Output for 4.3.0 - 7.2.0