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)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 17
Branch analysis from position: 10
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 14
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 17
2 jumps found. (Code = 77) Position 1 = 23, Position 2 = 32
Branch analysis from position: 23
2 jumps found. (Code = 78) Position 1 = 24, Position 2 = 32
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 17
filename:       /in/choRW
function name:  (null)
number of ops:  34
compiled vars:  !0 = $text, !1 = $matches, !2 = $binary, !3 = $char, !4 = $byte
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, 'PASTE_YOUR_LOREM_IPSUM_HERE'
    6     1        INIT_FCALL                                                   'preg_match_all'
          2        SEND_VAL                                                     '%2F%5B%5Cx%7B200B%7D-%5Cx%7B200F%7D%5Cx%7BFEFF%7D%5D%2Fu'
          3        SEND_VAR                                                     !0
          4        SEND_REF                                                     !1
          5        DO_ICALL                                                     
    8     6        ASSIGN                                                       !2, ''
    9     7        FETCH_DIM_R                                          ~8      !1, 0
          8      > FE_RESET_R                                           $9      ~8, ->17
          9    > > FE_FETCH_R                                                   $9, !3, ->17
   12    10    >   IS_IDENTICAL                                                 !3, '%E2%80%8B'
         11      > JMPZ                                                         ~10, ->14
         12    >   QM_ASSIGN                                            ~11     '0'
         13      > JMP                                                          ->15
         14    >   QM_ASSIGN                                            ~11     '1'
         15    >   ASSIGN_OP                                         8          !2, ~11
    9    16      > JMP                                                          ->9
         17    >   FE_FREE                                                      $9
   16    18        INIT_FCALL                                                   'str_split'
         19        SEND_VAR                                                     !2
         20        SEND_VAL                                                     8
         21        DO_ICALL                                             $13     
         22      > FE_RESET_R                                           $14     $13, ->32
         23    > > FE_FETCH_R                                                   $14, !4, ->32
   17    24    >   INIT_FCALL                                                   'chr'
         25        INIT_FCALL                                                   'bindec'
         26        SEND_VAR                                                     !4
         27        DO_ICALL                                             $15     
         28        SEND_VAR                                                     $15
         29        DO_ICALL                                             $16     
         30        ECHO                                                         $16
   16    31      > JMP                                                          ->23
         32    >   FE_FREE                                                      $14
   18    33      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
157.22 ms | 1316 KiB | 17 Q