3v4l.org

run code in 300+ PHP versions simultaneously
<?php function hexbin($temp) { $data=""; $len = strlen($temp); for ($i=0;$i<$len;$i+=2) $data.=chr(hexdec(substr($temp,$i,2))); return $data; } var_dump( base64_encode(hexbin(sha1('4ly5ccc64ln8n581.0.1I0110DQX563status'))) );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kcHYi
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_dump'
    9     1        INIT_FCALL                                               'base64_encode'
          2        INIT_FCALL                                               'hexbin'
          3        INIT_FCALL                                               'sha1'
          4        SEND_VAL                                                 '4ly5ccc64ln8n581.0.1I0110DQX563status'
          5        DO_ICALL                                         $0      
          6        SEND_VAR                                                 $0
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                         $2      
         10        SEND_VAR                                                 $2
         11        DO_ICALL                                                 
   10    12      > RETURN                                                   1

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

End of function hexbin

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.05 ms | 1390 KiB | 26 Q