3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hexadecimal = '00000206'; $decimal = '000206'; echo base_convert($hexadecimal, 16, 2); print("\n"); echo base_convert($decimal, 10, 2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/5AouQ
function name:  (null)
number of ops:  16
compiled vars:  !0 = $hexadecimal, !1 = $decimal
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '00000206'
    4     1        ASSIGN                                                   !1, '000206'
    5     2        INIT_FCALL                                               'base_convert'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 16
          5        SEND_VAL                                                 2
          6        DO_ICALL                                         $4      
          7        ECHO                                                     $4
          8        ECHO                                                     '%0A'
    6     9        INIT_FCALL                                               'base_convert'
         10        SEND_VAR                                                 !1
         11        SEND_VAL                                                 10
         12        SEND_VAL                                                 2
         13        DO_ICALL                                         $5      
         14        ECHO                                                     $5
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.76 ms | 1394 KiB | 15 Q