3v4l.org

run code in 300+ PHP versions simultaneously
<?php // only works on 32 and not 64bit int $bits = 64; $N = 0xfffffffffffffffe; $result = -( bcpow(2, $bits) - $N); echo $result,"\n";
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SrKO7
function name:  (null)
number of ops:  12
compiled vars:  !0 = $bits, !1 = $N, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 64
    4     1        ASSIGN                                                   !1, 1.84467e+19
    6     2        INIT_FCALL_BY_NAME                                       'bcpow'
          3        SEND_VAL_EX                                              2
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $5      
          6        SUB                                              ~6      $5, !1
          7        MUL                                              ~7      ~6, -1
          8        ASSIGN                                                   !2, ~7
    7     9        ECHO                                                     !2
         10        ECHO                                                     '%0A'
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.16 ms | 1384 KiB | 16 Q