3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
147.71 ms | 1394 KiB | 17 Q