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 git.master_jit, git.master

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
52.28 ms | 696 KiB | 4 Q