3v4l.org

run code in 300+ PHP versions simultaneously
<?php $id = '14910855968770314426'; $guid = base_convert($id, 10, 16); $guid2 = gmp_strval(gmp_init($id, 10), 16); var_dump($guid); var_dump($guid2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OU4lK
function name:  (null)
number of ops:  23
compiled vars:  !0 = $id, !1 = $guid, !2 = $guid2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '14910855968770314426'
    4     1        INIT_FCALL                                               'base_convert'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 10
          4        SEND_VAL                                                 16
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !1, $4
    5     7        INIT_FCALL_BY_NAME                                       'gmp_strval'
          8        INIT_FCALL_BY_NAME                                       'gmp_init'
          9        SEND_VAR_EX                                              !0
         10        SEND_VAL_EX                                              10
         11        DO_FCALL                                      0  $6      
         12        SEND_VAR_NO_REF_EX                                       $6
         13        SEND_VAL_EX                                              16
         14        DO_FCALL                                      0  $7      
         15        ASSIGN                                                   !2, $7
    6    16        INIT_FCALL                                               'var_dump'
         17        SEND_VAR                                                 !1
         18        DO_ICALL                                                 
    7    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !2
         21        DO_ICALL                                                 
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.73 ms | 1395 KiB | 17 Q