3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "0x80" + 0; var_dump($a); $converted = base_convert($a,16,2); printf("%d",bindec($converted));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EoSo6
function name:  (null)
number of ops:  19
compiled vars:  !0 = $a, !1 = $converted
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ADD                                              ~2      '0x80', 0
          1        ASSIGN                                                   !0, ~2
    3     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    4     5        INIT_FCALL                                               'base_convert'
          6        SEND_VAR                                                 !0
          7        SEND_VAL                                                 16
          8        SEND_VAL                                                 2
          9        DO_ICALL                                         $5      
         10        ASSIGN                                                   !1, $5
    5    11        INIT_FCALL                                               'printf'
         12        SEND_VAL                                                 '%25d'
         13        INIT_FCALL                                               'bindec'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                         $7      
         16        SEND_VAR                                                 $7
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.13 ms | 1394 KiB | 21 Q