3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172.08 ms | 1394 KiB | 15 Q