3v4l.org

run code in 500+ 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 = 27, Position 2 = 8
Branch analysis from position: 27
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/riiil
function name:  bcmul_hex
number of ops:  29
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        FRAMELESS_ICALL_1                dechex              ~10     !4
         14        CONCAT                                               ~11     ~10, !3
         15        ASSIGN                                                       !3, ~11
    9    16        INIT_FCALL_BY_NAME                                           'bcdiv'
         17        INIT_FCALL_BY_NAME                                           'bcsub'
         18        SEND_VAR_EX                                                  !2
         19        SEND_VAR_EX                                                  !4
         20        DO_FCALL                                          0  $13     
         21        SEND_VAR_NO_REF_EX                                           $13
         22        SEND_VAL_EX                                                  16
         23        DO_FCALL                                          0  $14     
         24        ASSIGN                                                       !2, $14
   10    25        IS_SMALLER                                                   0, !2
         26      > JMPNZ                                                        ~16, ->8
   11    27    > > RETURN                                                       !3
   12    28*     > RETURN                                                       null

End of function bcmul_hex

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
155.66 ms | 1713 KiB | 14 Q