3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Say we have a 74-page file $num_pages = 74; // Fill and array. $pages = range(1, $num_pages); $groups = array(); print_r($pages); for($i = 1; $i <= $pages; $i = $i+2) { echo "$i ".$i+1; } // Then create
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 12
Branch analysis from position: 21
Branch analysis from position: 12
filename:       /in/FVl9D
function name:  (null)
number of ops:  22
compiled vars:  !0 = $num_pages, !1 = $pages, !2 = $groups, !3 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 74
    7     1        INIT_FCALL                                               'range'
          2        SEND_VAL                                                 1
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    8     6        ASSIGN                                                   !2, <array>
   10     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                                 
   12    10        ASSIGN                                                   !3, 1
         11      > JMP                                                      ->19
   13    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~10     !3, '+'
         14        ADD                                              ~11     !3, 1
         15        CONCAT                                           ~12     ~10, ~11
         16        ECHO                                                     ~12
   12    17        ADD                                              ~13     !3, 2
         18        ASSIGN                                                   !3, ~13
         19    >   IS_SMALLER_OR_EQUAL                                      !3, !1
         20      > JMPNZ                                                    ~15, ->12
   16    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.29 ms | 1387 KiB | 17 Q