3v4l.org

run code in 300+ PHP versions simultaneously
<?php $index = 1; $total = 0; while($index<=6115729){ if(gmp_perfect_square($index)){ $total = $total + $total; } $index++; } echo $total; ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
2 jumps found. (Code = 44) Position 1 = 12, Position 2 = 3
Branch analysis from position: 12
Branch analysis from position: 3
Branch analysis from position: 9
filename:       /in/S0e6g
function name:  (null)
number of ops:  14
compiled vars:  !0 = $index, !1 = $total
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        ASSIGN                                                   !1, 0
    4     2      > JMP                                                      ->10
    5     3    >   INIT_FCALL_BY_NAME                                       'gmp_perfect_square'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0  $4      
          6      > JMPZ                                                     $4, ->9
    6     7    >   ADD                                              ~5      !1, !1
          8        ASSIGN                                                   !1, ~5
    8     9    >   PRE_INC                                                  !0
    4    10    >   IS_SMALLER_OR_EQUAL                                      !0, 6115729
         11      > JMPNZ                                                    ~8, ->3
   10    12    >   ECHO                                                     !1
   13    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.19 ms | 1393 KiB | 13 Q