3v4l.org

run code in 300+ PHP versions simultaneously
<?php $runs = $itemcount / 2500; // Around 80 smaller queries for ($i = 0; $i <= $runs; $i++) { $offset = $i * 2500; $sql = "SELECT id,title,price,description FROM items LIMIT 2500,$offset"; $result = $mysqli->query($sql); while ($obj = $result->fetch_object()) { // testing - do nothing } echo "Run: ".$i."<br />"; } ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 14
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 24, Position 2 = 4
Branch analysis from position: 24
Branch analysis from position: 4
Branch analysis from position: 14
filename:       /in/n957u
function name:  (null)
number of ops:  25
compiled vars:  !0 = $runs, !1 = $itemcount, !2 = $i, !3 = $offset, !4 = $sql, !5 = $result, !6 = $mysqli, !7 = $obj
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   DIV                                              ~8      !1, 2500
          1        ASSIGN                                                   !0, ~8
    3     2        ASSIGN                                                   !2, 0
          3      > JMP                                                      ->22
    4     4    >   MUL                                              ~11     !2, 2500
          5        ASSIGN                                                   !3, ~11
    5     6        NOP                                                      
          7        FAST_CONCAT                                      ~13     'SELECT+id%2Ctitle%2Cprice%2Cdescription+FROM+items+LIMIT+2500%2C', !3
          8        ASSIGN                                                   !4, ~13
    6     9        INIT_METHOD_CALL                                         !6, 'query'
         10        SEND_VAR_EX                                              !4
         11        DO_FCALL                                      0  $15     
         12        ASSIGN                                                   !5, $15
    7    13      > JMP                                                      ->14
         14    >   INIT_METHOD_CALL                                         !5, 'fetch_object'
         15        DO_FCALL                                      0  $17     
         16        ASSIGN                                           ~18     !7, $17
         17      > JMPNZ                                                    ~18, ->14
   10    18    >   CONCAT                                           ~19     'Run%3A+', !2
         19        CONCAT                                           ~20     ~19, '%3Cbr+%2F%3E'
         20        ECHO                                                     ~20
    3    21        PRE_INC                                                  !2
         22    >   IS_SMALLER_OR_EQUAL                                      !2, !0
         23      > JMPNZ                                                    ~22, ->4
   12    24    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.15 ms | 1395 KiB | 13 Q