3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 0; $end = 10; $comparator = '<'; $comparatorExpression = null; $i = $start; for ( ; ; ) { switch ($comparator) { case '<'; $comparatorExpression = "$i < $end"; break; } if (!$comparatorExpression) { break; } $i++; echo $i; }
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 = 20, Position 2 = 6
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
2 jumps found. (Code = 44) Position 1 = 8, Position 2 = 9
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 6
Branch analysis from position: 20
Branch analysis from position: 6
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/KbEkn
function name:  (null)
number of ops:  21
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
    7     4        ASSIGN                                                   !4, !0
    8     5      > JMP                                                      ->19
   10     6    >   IS_EQUAL                                                 !2, '%3C'
          7      > JMPNZ                                                    ~10, ->9
          8    > > JMP                                                      ->14
   11     9    >   ROPE_INIT                                     3  ~12     !4
         10        ROPE_ADD                                      1  ~12     ~12, '+%3C+'
         11        ROPE_END                                      2  ~11     ~12, !1
         12        ASSIGN                                                   !3, ~11
   12    13      > JMP                                                      ->14
   15    14    >   BOOL_NOT                                         ~15     !3
         15      > JMPZ                                                     ~15, ->17
   16    16    > > JMP                                                      ->20
   19    17    >   PRE_INC                                                  !4
   21    18        ECHO                                                     !4
         19    > > JMPNZ                                                    <true>, ->6
   22    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.33 ms | 1394 KiB | 13 Q