3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0; $i < 100; $i++) { echo $i * 10 % 1000 . PHP_EOL; if($i * 10 % 1000 == 34) echo "You got it! " . $i; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 2
Branch analysis from position: 15
Branch analysis from position: 2
Branch analysis from position: 12
filename:       /in/3AHed
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1      > JMP                                                      ->13
    4     2    >   MUL                                              ~2      !0, 10
          3        MOD                                              ~3      ~2, 1000
          4        CONCAT                                           ~4      ~3, '%0A'
          5        ECHO                                                     ~4
    5     6        MUL                                              ~5      !0, 10
          7        MOD                                              ~6      ~5, 1000
          8        IS_EQUAL                                                 ~6, 34
          9      > JMPZ                                                     ~7, ->12
    6    10    >   CONCAT                                           ~8      'You+got+it%21+', !0
         11        ECHO                                                     ~8
    3    12    >   PRE_INC                                                  !0
         13    >   IS_SMALLER                                               !0, 100
         14      > JMPNZ                                                    ~10, ->2
    7    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.15 ms | 1393 KiB | 13 Q