3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0x40; var_dump($a); // 64 var_dump(base_convert($a, 16, 2)); // But 64hex == 1100100 or 296 b/c passing effectively 64 in base 16 to convert to base 2 var_dump(base_convert(40, 16, 2)); // 64 b/c 40 in base 16 == 64 decimal == 1000000 or 2 ** 6
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/09aEo
function name:  (null)
number of ops:  21
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        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
    4     4        INIT_FCALL                                               'var_dump'
          5        INIT_FCALL                                               'base_convert'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 16
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $3      
         10        SEND_VAR                                                 $3
         11        DO_ICALL                                                 
    5    12        INIT_FCALL                                               'var_dump'
         13        INIT_FCALL                                               'base_convert'
         14        SEND_VAL                                                 40
         15        SEND_VAL                                                 16
         16        SEND_VAL                                                 2
         17        DO_ICALL                                         $5      
         18        SEND_VAR                                                 $5
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.94 ms | 1386 KiB | 17 Q