3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bits = 64; $N = 0xfffffffffffffffe; var_dump($N); $result = -( pow(2, $bits) - $N ); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/lr20n
function name:  (null)
number of ops:  14
compiled vars:  !0 = $bits, !1 = $N, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 64
    3     1        ASSIGN                                                   !1, 1.84467e+19
    4     2        INIT_FCALL                                               'var_dump'
          3        SEND_VAR                                                 !1
          4        DO_ICALL                                                 
    5     5        INIT_FCALL                                               'pow'
          6        SEND_VAL                                                 2
          7        SEND_VAR                                                 !0
          8        DO_ICALL                                         $6      
          9        SUB                                              ~7      $6, !1
         10        MUL                                              ~8      ~7, -1
         11        ASSIGN                                                   !2, ~8
    6    12        ECHO                                                     !2
         13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
191.55 ms | 1394 KiB | 17 Q