3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = 0; $end = 10; $comparator = '<'; $i = $start; for ( ; ; ) { if (eval("{$i} {$comparator} {$end}")) { echo "$i\n"; $i++; continue; } break; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
filename:       /in/il1U5
function name:  (null)
number of ops:  20
compiled vars:  !0 = $start, !1 = $end, !2 = $comparator, !3 = $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'
    6     3        ASSIGN                                                   !3, !0
    7     4      > JMP                                                      ->18
    8     5    >   ROPE_INIT                                     5  ~9      !3
          6        ROPE_ADD                                      1  ~9      ~9, '+'
          7        ROPE_ADD                                      2  ~9      ~9, !2
          8        ROPE_ADD                                      3  ~9      ~9, '+'
          9        ROPE_END                                      4  ~8      ~9, !1
         10        INCLUDE_OR_EVAL                                  $12     ~8, EVAL
         11      > JMPZ                                                     $12, ->17
    9    12    >   NOP                                                      
         13        FAST_CONCAT                                      ~13     !3, '%0A'
         14        ECHO                                                     ~13
   11    15        PRE_INC                                                  !3
   12    16      > JMP                                                      ->18
   15    17    > > JMP                                                      ->19
         18    > > JMPNZ                                                    <true>, ->5
   16    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.51 ms | 1394 KiB | 13 Q