3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bin = "01001000 01100101 01101100 01101100 01101111 00101100 00100000 01010111 01101000 01101111 00100000 01100011 01100001 01101110 00100000 01110101 01101110 01100100 01100101 01110010 01110011 01110100 01100001 01101110 01100100 00100000 01110100 01101000 01101001 01110011 00111111"; $bytes = []; foreach (explode(' ', $bin) as $byte) { $char = 0; foreach (str_split($byte, 1) as $pos => $bit) { $char |= (2 ** (7 - $pos)) * $bit; } echo chr($char); }
Output for 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Hello, Who can understand this?
Output for 5.5.0 - 5.5.35
Parse error: syntax error, unexpected '*' in /in/bZtAh on line 11
Process exited with code 255.

preferences:
173.65 ms | 401 KiB | 230 Q