3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limit = 20; $num_links = ceil(300000/$limit); $soma = 0; for ($i=2; $i <= $num_links;$i++) { $soma += $limit; $off[$i] = $soma; } echo $soma;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 9
Branch analysis from position: 15
Branch analysis from position: 9
filename:       /in/0TVOr
function name:  (null)
number of ops:  17
compiled vars:  !0 = $limit, !1 = $num_links, !2 = $soma, !3 = $i, !4 = $off
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 20
    3     1        INIT_FCALL                                               'ceil'
          2        DIV                                              ~6      300000, !0
          3        SEND_VAL                                                 ~6
          4        DO_ICALL                                         $7      
          5        ASSIGN                                                   !1, $7
    4     6        ASSIGN                                                   !2, 0
    5     7        ASSIGN                                                   !3, 2
          8      > JMP                                                      ->13
    6     9    >   ASSIGN_OP                                     1          !2, !0
    7    10        ASSIGN_DIM                                               !4, !3
         11        OP_DATA                                                  !2
    5    12        PRE_INC                                                  !3
         13    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         14      > JMPNZ                                                    ~14, ->9
    9    15    >   ECHO                                                     !2
   10    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.67 ms | 1399 KiB | 15 Q