3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 0x40; $b = ~$a; // flip bits, i.e. 2s complement so -$a and then minus 1 var_dump($b); // -65 decimal var_dump(bin2dec(base_convert($b, 10, 2))); // 65
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vJcMo
function name:  (null)
number of ops:  18
compiled vars:  !0 = $a, !1 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 64
    3     1        BW_NOT                                           ~3      !0
          2        ASSIGN                                                   !1, ~3
    4     3        INIT_FCALL                                               'var_dump'
          4        SEND_VAR                                                 !1
          5        DO_ICALL                                                 
    5     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL_BY_NAME                                       'bin2dec'
          8        INIT_FCALL                                               'base_convert'
          9        SEND_VAR                                                 !1
         10        SEND_VAL                                                 10
         11        SEND_VAL                                                 2
         12        DO_ICALL                                         $6      
         13        SEND_VAR_NO_REF_EX                                       $6
         14        DO_FCALL                                      0  $7      
         15        SEND_VAR                                                 $7
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.06 ms | 1394 KiB | 17 Q