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); for($i = 1; $i <= $pages; $i = $i+2) { echo "A$i-".($i+1); } // Then create
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
2 jumps found. (Code = 44) Position 1 = 18, Position 2 = 8
Branch analysis from position: 18
Branch analysis from position: 8
filename:       /in/7cdYq
function name:  (null)
number of ops:  19
compiled vars:  !0 = $num_pages, !1 = $pages, !2 = $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                                         $4      
          5        ASSIGN                                                   !1, $4
    9     6        ASSIGN                                                   !2, 1
          7      > JMP                                                      ->16
   10     8    >   ROPE_INIT                                     3  ~8      'A'
          9        ROPE_ADD                                      1  ~8      ~8, !2
         10        ROPE_END                                      2  ~7      ~8, '-'
         11        ADD                                              ~10     !2, 1
         12        CONCAT                                           ~11     ~7, ~10
         13        ECHO                                                     ~11
    9    14        ADD                                              ~12     !2, 2
         15        ASSIGN                                                   !2, ~12
         16    >   IS_SMALLER_OR_EQUAL                                      !2, !1
         17      > JMPNZ                                                    ~14, ->8
   13    18    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
271.38 ms | 940 KiB | 17 Q