3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bin2asc($temp) { $len = strlen($temp); for($i=0; $i<($len/8); $i++) { $data .= chr(intval(substr($temp, $i * 8, 8), 2)); } return $data; } echo bin2asc("100111");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2AsKh
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'bin2asc'
          1        SEND_VAL                                                 '100111'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Function bin2asc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 5
Branch analysis from position: 23
Branch analysis from position: 5
filename:       /in/2AsKh
function name:  bin2asc
number of ops:  25
compiled vars:  !0 = $temp, !1 = $len, !2 = $i, !3 = $data
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
    3     1        STRLEN                                           ~4      !0
          2        ASSIGN                                                   !1, ~4
    4     3        ASSIGN                                                   !2, 0
          4      > JMP                                                      ->20
    5     5    >   INIT_FCALL                                               'chr'
          6        INIT_FCALL                                               'intval'
          7        INIT_FCALL                                               'substr'
          8        SEND_VAR                                                 !0
          9        MUL                                              ~7      !2, 8
         10        SEND_VAL                                                 ~7
         11        SEND_VAL                                                 8
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        SEND_VAL                                                 2
         15        DO_ICALL                                         $9      
         16        SEND_VAR                                                 $9
         17        DO_ICALL                                         $10     
         18        ASSIGN_OP                                     8          !3, $10
    4    19        PRE_INC                                                  !2
         20    >   DIV                                              ~13     !1, 8
         21        IS_SMALLER                                               !2, ~13
         22      > JMPNZ                                                    ~14, ->5
    7    23    > > RETURN                                                   !3
    8    24*     > RETURN                                                   null

End of function bin2asc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.19 ms | 1398 KiB | 20 Q