3v4l.org

run code in 300+ PHP versions simultaneously
<?php $msb = -1 * pow(2,63); for ($i=62; $i >= 0; $i--) { $result = pow(2,$i); $msb += $result; echo $msb,'\n'; } echo '<p>***',$msb,'****</p>';
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 8
Branch analysis from position: 19
Branch analysis from position: 8
filename:       /in/Ppajq
function name:  (null)
number of ops:  23
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                                                 63
          3        DO_ICALL                                         $3      
          4        MUL                                              ~4      $3, -1
          5        ASSIGN                                                   !0, ~4
    3     6        ASSIGN                                                   !1, 62
          7      > JMP                                                      ->17
    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
    6    14        ECHO                                                     !0
         15        ECHO                                                     '%5Cn'
    3    16        PRE_DEC                                                  !1
         17    >   IS_SMALLER_OR_EQUAL                                      0, !1
         18      > JMPNZ                                                    ~11, ->8
    8    19    >   ECHO                                                     '%3Cp%3E%2A%2A%2A'
         20        ECHO                                                     !0
         21        ECHO                                                     '%2A%2A%2A%2A%3C%2Fp%3E'
         22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.03 ms | 1395 KiB | 15 Q