3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hex = "768"; $x=base_convert($hex,10,36); print_r(typeof($x)); echo base_convert($x,36,10);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/QGZTE
function name:  (null)
number of ops:  20
compiled vars:  !0 = $hex, !1 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '768'
    3     1        INIT_FCALL                                               'base_convert'
          2        SEND_VAR                                                 !0
          3        SEND_VAL                                                 10
          4        SEND_VAL                                                 36
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    4     7        INIT_FCALL                                               'print_r'
          8        INIT_FCALL_BY_NAME                                       'typeof'
          9        SEND_VAR_EX                                              !1
         10        DO_FCALL                                      0  $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    5    13        INIT_FCALL                                               'base_convert'
         14        SEND_VAR                                                 !1
         15        SEND_VAL                                                 36
         16        SEND_VAL                                                 10
         17        DO_ICALL                                         $7      
         18        ECHO                                                     $7
         19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.03 ms | 1394 KiB | 17 Q