3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 0; $end = 10; $comparator = '<'; $comparatorExpression = null; switch ($comparator) { case '<'; $comparatorExpression = "$i < $end"; break; } for ($i = $start; $comparator; $i++) { echo "$i\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 7
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 14
Branch analysis from position: 19
Branch analysis from position: 14
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/QPcIr
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $end, !2 = $comparator, !3 = $comparatorExpression, !4 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 0
    3     1        ASSIGN                                                   !1, 10
    4     2        ASSIGN                                                   !2, '%3C'
    5     3        ASSIGN                                                   !3, null
    8     4        IS_EQUAL                                                 !2, '%3C'
          5      > JMPNZ                                                    ~9, ->7
          6    > > JMP                                                      ->12
    9     7    >   ROPE_INIT                                     3  ~11     !4
          8        ROPE_ADD                                      1  ~11     ~11, '+%3C+'
          9        ROPE_END                                      2  ~10     ~11, !1
         10        ASSIGN                                                   !3, ~10
   10    11      > JMP                                                      ->12
   13    12    >   ASSIGN                                                   !4, !0
         13      > JMP                                                      ->18
   14    14    >   NOP                                                      
         15        FAST_CONCAT                                      ~15     !4, '%0A'
         16        ECHO                                                     ~15
   13    17        PRE_INC                                                  !4
         18    > > JMPNZ                                                    !2, ->14
   15    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.71 ms | 1394 KiB | 13 Q