3v4l.org

run code in 300+ PHP versions simultaneously
<?php FUNCTION bin2text($bin_str) { $text_str = ''; $chars = EXPLODE("\n", CHUNK_SPLIT(STR_REPLACE("\n", '', $bin_str), 8)); $_I = COUNT($chars); FOR($i = 0; $i < $_I; $text_str .= CHR(BINDEC($chars[$i])), $i ); RETURN $text_str; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sX72i
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E > > RETURN                                                   1

Function bin2text:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 30, Position 2 = 20
Branch analysis from position: 30
Branch analysis from position: 20
filename:       /in/sX72i
function name:  bin2text
number of ops:  32
compiled vars:  !0 = $bin_str, !1 = $text_str, !2 = $chars, !3 = $_I, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    4     1        ASSIGN                                                   !1, ''
    5     2        INIT_FCALL                                               'explode'
          3        SEND_VAL                                                 '%0A'
          4        INIT_FCALL                                               'chunk_split'
          5        INIT_FCALL                                               'str_replace'
          6        SEND_VAL                                                 '%0A'
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $6      
         10        SEND_VAR                                                 $6
         11        SEND_VAL                                                 8
         12        DO_ICALL                                         $7      
         13        SEND_VAR                                                 $7
         14        DO_ICALL                                         $8      
         15        ASSIGN                                                   !2, $8
    6    16        COUNT                                            ~10     !2
         17        ASSIGN                                                   !3, ~10
    7    18        ASSIGN                                                   !4, 0
         19      > JMP                                                      ->28
         20    >   INIT_FCALL                                               'chr'
         21        INIT_FCALL                                               'bindec'
         22        FETCH_DIM_R                                      ~13     !2, !4
         23        SEND_VAL                                                 ~13
         24        DO_ICALL                                         $14     
         25        SEND_VAR                                                 $14
         26        DO_ICALL                                         $15     
         27        ASSIGN_OP                                     8          !1, $15
         28    >   IS_SMALLER                                               !4, !3
         29      > JMPNZ                                                    ~17, ->20
    8    30    > > RETURN                                                   !1
    9    31*     > RETURN                                                   null

End of function bin2text

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.04 ms | 1396 KiB | 23 Q