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); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 27
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 27
Branch analysis from position: 8
2 jumps found. (Code = 77) Position 1 = 14, Position 2 = 21
Branch analysis from position: 14
2 jumps found. (Code = 78) Position 1 = 15, Position 2 = 21
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 21
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/bZtAh
function name:  (null)
number of ops:  29
compiled vars:  !0 = $bin, !1 = $bytes, !2 = $byte, !3 = $char, !4 = $bit, !5 = $pos
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '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'
    5     1        ASSIGN                                                   !1, <array>
    7     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '+'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $8      
          6      > FE_RESET_R                                       $9      $8, ->27
          7    > > FE_FETCH_R                                               $9, !2, ->27
    8     8    >   ASSIGN                                                   !3, 0
   10     9        INIT_FCALL                                               'str_split'
         10        SEND_VAR                                                 !2
         11        SEND_VAL                                                 1
         12        DO_ICALL                                         $11     
         13      > FE_RESET_R                                       $12     $11, ->21
         14    > > FE_FETCH_R                                       ~13     $12, !4, ->21
         15    >   ASSIGN                                                   !5, ~13
   11    16        SUB                                              ~15     7, !5
         17        POW                                              ~16     2, ~15
         18        MUL                                              ~17     !4, ~16
         19        ASSIGN_OP                                     9          !3, ~17
   10    20      > JMP                                                      ->14
         21    >   FE_FREE                                                  $12
   14    22        INIT_FCALL                                               'chr'
         23        SEND_VAR                                                 !3
         24        DO_ICALL                                         $19     
         25        ECHO                                                     $19
    7    26      > JMP                                                      ->7
         27    >   FE_FREE                                                  $9
   15    28      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
180.75 ms | 1407 KiB | 19 Q