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"; if ($i > $end) { echo "fail\n"; break; } }
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 = 22
Branch analysis from position: 22
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 14
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 19, Position 2 = 21
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 14
Branch analysis from position: 23
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/qsA0M
function name:  (null)
number of ops:  24
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                                                      ->22
   14    14    >   NOP                                                      
         15        FAST_CONCAT                                      ~15     !4, '%0A'
         16        ECHO                                                     ~15
   15    17        IS_SMALLER                                               !1, !4
         18      > JMPZ                                                     ~16, ->21
   16    19    >   ECHO                                                     'fail%0A'
   17    20      > JMP                                                      ->23
   13    21    >   PRE_INC                                                  !4
         22    > > JMPNZ                                                    !2, ->14
   19    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.69 ms | 1395 KiB | 13 Q