3v4l.org

run code in 300+ PHP versions simultaneously
<?php /* < [1] 2 3 ... 22 23 > < 1 [2] 3 ... 22 23 > < 1 2 [3] 4 ... 22 23 > < 1 2 3 [4] 5 ... 22 23 > < 1 2 ... 4 [5] 6 ... 22 23 > < 1 2 ... 5 [6] 7 ... 22 23 > ... < 1 2 ... 18 [19] 20 ... 22 23 > */ $currentpageid = $nmstart = 0; $nrtotal = 23; $nrposts = 1; $pages = ''; $ssPagingStartCount = 3; $ssPagingCurrentCount = 3; $ssPagingEndCount = 2; $totalpages = ceil($nrtotal / $nrposts); if ($totalpages > 1 ){ for ($x = 0; $x < $totalpages; ++$x) { $inc = $x * $nrposts; $display = $x + 1; if($inc != $nmstart) { $pages .= "\n<a class=\"nl_page\" href='" . "nmstart=$inc'>".$display."</a>"; } else { $pages .= "\n<span class=\"nl_page nl_page__currentpage\">".$display."</span>"; } } } var_dump($pages); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 37
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 17
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
2 jumps found. (Code = 43) Position 1 = 23, Position 2 = 31
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 17
Branch analysis from position: 37
Branch analysis from position: 17
Branch analysis from position: 31
2 jumps found. (Code = 44) Position 1 = 37, Position 2 = 17
Branch analysis from position: 37
Branch analysis from position: 17
Branch analysis from position: 37
filename:       /in/5jmsG
function name:  (null)
number of ops:  41
compiled vars:  !0 = $currentpageid, !1 = $nmstart, !2 = $nrtotal, !3 = $nrposts, !4 = $pages, !5 = $ssPagingStartCount, !6 = $ssPagingCurrentCount, !7 = $ssPagingEndCount, !8 = $totalpages, !9 = $x, !10 = $inc, !11 = $display
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                           ~12     !1, 0
          1        ASSIGN                                                   !0, ~12
   14     2        ASSIGN                                                   !2, 23
   15     3        ASSIGN                                                   !3, 1
   16     4        ASSIGN                                                   !4, ''
   18     5        ASSIGN                                                   !5, 3
   19     6        ASSIGN                                                   !6, 3
   20     7        ASSIGN                                                   !7, 2
   22     8        INIT_FCALL                                               'ceil'
          9        DIV                                              ~20     !2, !3
         10        SEND_VAL                                                 ~20
         11        DO_ICALL                                         $21     
         12        ASSIGN                                                   !8, $21
   23    13        IS_SMALLER                                               1, !8
         14      > JMPZ                                                     ~23, ->37
   24    15    >   ASSIGN                                                   !9, 0
         16      > JMP                                                      ->35
   25    17    >   MUL                                              ~25     !9, !3
         18        ASSIGN                                                   !10, ~25
   26    19        ADD                                              ~27     !9, 1
         20        ASSIGN                                                   !11, ~27
   27    21        IS_NOT_EQUAL                                             !10, !1
         22      > JMPZ                                                     ~29, ->31
   28    23    >   ROPE_INIT                                     3  ~31     'nmstart%3D'
         24        ROPE_ADD                                      1  ~31     ~31, !10
         25        ROPE_END                                      2  ~30     ~31, '%27%3E'
         26        CONCAT                                           ~33     '%0A%3Ca+class%3D%22nl_page%22+href%3D%27', ~30
         27        CONCAT                                           ~34     ~33, !11
         28        CONCAT                                           ~35     ~34, '%3C%2Fa%3E'
         29        ASSIGN_OP                                     8          !4, ~35
         30      > JMP                                                      ->34
   30    31    >   CONCAT                                           ~37     '%0A%3Cspan+class%3D%22nl_page+nl_page__currentpage%22%3E', !11
         32        CONCAT                                           ~38     ~37, '%3C%2Fspan%3E'
         33        ASSIGN_OP                                     8          !4, ~38
   24    34    >   PRE_INC                                                  !9
         35    >   IS_SMALLER                                               !9, !8
         36      > JMPNZ                                                    ~41, ->17
   35    37    >   INIT_FCALL                                               'var_dump'
         38        SEND_VAR                                                 !4
         39        DO_ICALL                                                 
   36    40      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.49 ms | 1400 KiB | 17 Q