3v4l.org

run code in 300+ PHP versions simultaneously
<?php $bits = 64; $N = 0xfffffffffffffffe; var_dump((int) -(pow(2, $bits) - $N)); // -2
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oL9ZL
function name:  (null)
number of ops:  13
compiled vars:  !0 = $bits, !1 = $N
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        INIT_FCALL                                               'pow'
          4        SEND_VAL                                                 2
          5        SEND_VAR                                                 !0
          6        DO_ICALL                                         $4      
          7        SUB                                              ~5      $4, !1
          8        MUL                                              ~6      ~5, -1
          9        CAST                                          4  ~7      ~6
         10        SEND_VAL                                                 ~7
         11        DO_ICALL                                                 
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.07 ms | 1394 KiB | 17 Q