3v4l.org

run code in 500+ PHP versions simultaneously
<?php // Paste the Lorem Ipsum text from the website between the quotes below $text = "PASTE_YOUR_LOREM_IPSUM_HERE"; // This regex finds Zero Width Characters (Space, Non-Joiner, Joiner) preg_match_all('/[\x{200B}-\x{200F}\x{FEFF}]/u', $text, $matches); $binary = ''; foreach ($matches[0] as $char) { // Map the specific zero-width characters to 0s and 1s // Common mapping: U+200B is 0, U+200C is 1 $binary .= ($char === "\xE2\x80\x8B") ? '0' : '1'; } // Convert the binary blocks into ASCII characters foreach (str_split($binary, 8) as $byte) { echo chr(bindec($byte)); }
Output for 8.3.0 - 8.3.30, 8.4.1 - 8.4.18, 8.5.0 - 8.5.3

preferences:
50.15 ms | 696 KiB | 4 Q