3v4l.org

run code in 300+ PHP versions simultaneously
<?php $registros = ["manzana", "pera", "naranja", "limon", "mandarina", "melon", "aguacate", "chinola", "melocoton"]; $mostrarRegistros = 2; $paginas = ceil(count($registros)/$mostrarRegistros); $inicio = 0; echo "la cantidad de paginas es: $paginas\n"; for($i = 1; $i <= $paginas; $i++){ echo " |$i| "; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 15
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 22, Position 2 = 15
Branch analysis from position: 22
Branch analysis from position: 15
filename:       /in/kqRdC
function name:  (null)
number of ops:  23
compiled vars:  !0 = $registros, !1 = $mostrarRegistros, !2 = $paginas, !3 = $inicio, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN                                                   !1, 2
    4     2        INIT_FCALL                                               'ceil'
          3        COUNT                                            ~7      !0
          4        DIV                                              ~8      ~7, !1
          5        SEND_VAL                                                 ~8
          6        DO_ICALL                                         $9      
          7        ASSIGN                                                   !2, $9
    5     8        ASSIGN                                                   !3, 0
    6     9        ROPE_INIT                                     3  ~13     'la+cantidad+de+paginas+es%3A+'
         10        ROPE_ADD                                      1  ~13     ~13, !2
         11        ROPE_END                                      2  ~12     ~13, '%0A'
         12        ECHO                                                     ~12
    7    13        ASSIGN                                                   !4, 1
         14      > JMP                                                      ->20
    9    15    >   ROPE_INIT                                     3  ~17     '+%7C'
         16        ROPE_ADD                                      1  ~17     ~17, !4
         17        ROPE_END                                      2  ~16     ~17, '%7C+'
         18        ECHO                                                     ~16
    7    19        PRE_INC                                                  !4
         20    >   IS_SMALLER_OR_EQUAL                                      !4, !2
         21      > JMPNZ                                                    ~20, ->15
   10    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.83 ms | 1395 KiB | 15 Q