3v4l.org

run code in 300+ PHP versions simultaneously
<?php function gmp_base_convert($numStr,$base){ $gnum = gmp_init($numStr); return gmp_strval($gnum,$base); } echo gmp_base_convert("0x40",8);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ajOqN
function name:  (null)
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_FCALL                                               'gmp_base_convert'
          1        SEND_VAL                                                 '0x40'
          2        SEND_VAL                                                 8
          3        DO_FCALL                                      0  $0      
          4        ECHO                                                     $0
          5      > RETURN                                                   1

Function gmp_base_convert:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ajOqN
function name:  gmp_base_convert
number of ops:  12
compiled vars:  !0 = $numStr, !1 = $base, !2 = $gnum
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    5     2        INIT_FCALL_BY_NAME                                       'gmp_init'
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0  $3      
          5        ASSIGN                                                   !2, $3
    6     6        INIT_FCALL_BY_NAME                                       'gmp_strval'
          7        SEND_VAR_EX                                              !2
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0  $5      
         10      > RETURN                                                   $5
    7    11*     > RETURN                                                   null

End of function gmp_base_convert

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.19 ms | 1397 KiB | 14 Q