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 (eval("return {$i} {$comparator} {$end};")) { echo $i; $i++; continue; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
2 jumps found. (Code = 44) Position 1 = 27, Position 2 = 6
Branch analysis from position: 27
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 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 26
Branch analysis from position: 26
Branch analysis from position: 26
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/G0FME
function name:  (null)
number of ops:  28
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                                                      ->26
   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    >   ROPE_INIT                                     7  ~16     'return+'
         15        ROPE_ADD                                      1  ~16     ~16, !4
         16        ROPE_ADD                                      2  ~16     ~16, '+'
         17        ROPE_ADD                                      3  ~16     ~16, !2
         18        ROPE_ADD                                      4  ~16     ~16, '+'
         19        ROPE_ADD                                      5  ~16     ~16, !1
         20        ROPE_END                                      6  ~15     ~16, '%3B'
         21        INCLUDE_OR_EVAL                                  $20     ~15, EVAL
         22      > JMPZ                                                     $20, ->26
   16    23    >   ECHO                                                     !4
   17    24        PRE_INC                                                  !4
   18    25      > JMP                                                      ->26
         26    > > JMPNZ                                                    <true>, ->6
   20    27    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.41 ms | 1395 KiB | 13 Q