3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msb = -1 * pow(2,62); for ($i=61; $i >= 0; $i--) { $result = pow(2,$i); $msb += $result; } echo '***',$msb,'****';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 8
Branch analysis from position: 17
Branch analysis from position: 8
filename:       /in/9sf6g
function name:  (null)
number of ops:  21
compiled vars:  !0 = $msb, !1 = $i, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'pow'
          1        SEND_VAL                                                 2
          2        SEND_VAL                                                 62
          3        DO_ICALL                                         $3      
          4        MUL                                              ~4      $3, -1
          5        ASSIGN                                                   !0, ~4
    3     6        ASSIGN                                                   !1, 61
          7      > JMP                                                      ->15
    4     8    >   INIT_FCALL                                               'pow'
          9        SEND_VAL                                                 2
         10        SEND_VAR                                                 !1
         11        DO_ICALL                                         $7      
         12        ASSIGN                                                   !2, $7
    5    13        ASSIGN_OP                                     1          !0, !2
    3    14        PRE_DEC                                                  !1
         15    >   IS_SMALLER_OR_EQUAL                                      0, !1
         16      > JMPNZ                                                    ~11, ->8
    7    17    >   ECHO                                                     '%2A%2A%2A'
         18        ECHO                                                     !0
         19        ECHO                                                     '%2A%2A%2A%2A'
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.64 ms | 1395 KiB | 15 Q