3v4l.org

run code in 300+ PHP versions simultaneously
<?php function bcmul_hex($h1, $h2) { $dec = bcmul($h1, $h2); $hex = ''; do { $last = bcmod($dec, 16); $hex = dechex($last).$hex; $dec = bcdiv(bcsub($dec, $last), 16); } while($dec>0); return $hex; } echo bcmul_hex(0xB5365D09, 0xDEBC252C);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/riiil
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   INIT_FCALL                                               'bcmul_hex'
          1        SEND_VAL                                                 3040238857
          2        SEND_VAL                                                 3736872236
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function bcmul_hex:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 29, Position 2 = 8
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/riiil
function name:  bcmul_hex
number of ops:  31
compiled vars:  !0 = $h1, !1 = $h2, !2 = $dec, !3 = $hex, !4 = $last
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        INIT_FCALL_BY_NAME                                       'bcmul'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAR_EX                                              !1
          5        DO_FCALL                                      0  $5      
          6        ASSIGN                                                   !2, $5
    5     7        ASSIGN                                                   !3, ''
    7     8    >   INIT_FCALL_BY_NAME                                       'bcmod'
          9        SEND_VAR_EX                                              !2
         10        SEND_VAL_EX                                              16
         11        DO_FCALL                                      0  $8      
         12        ASSIGN                                                   !4, $8
    8    13        INIT_FCALL                                               'dechex'
         14        SEND_VAR                                                 !4
         15        DO_ICALL                                         $10     
         16        CONCAT                                           ~11     $10, !3
         17        ASSIGN                                                   !3, ~11
    9    18        INIT_FCALL_BY_NAME                                       'bcdiv'
         19        INIT_FCALL_BY_NAME                                       'bcsub'
         20        SEND_VAR_EX                                              !2
         21        SEND_VAR_EX                                              !4
         22        DO_FCALL                                      0  $13     
         23        SEND_VAR_NO_REF_EX                                       $13
         24        SEND_VAL_EX                                              16
         25        DO_FCALL                                      0  $14     
         26        ASSIGN                                                   !2, $14
   10    27        IS_SMALLER                                               0, !2
         28      > JMPNZ                                                    ~16, ->8
   11    29    > > RETURN                                                   !3
   12    30*     > RETURN                                                   null

End of function bcmul_hex

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.84 ms | 1005 KiB | 15 Q