3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.8 ms | 1395 KiB | 19 Q