3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.85 ms | 1398 KiB | 13 Q