3v4l.org

run code in 300+ PHP versions simultaneously
<?php for($i = 0, $j = 1; $i < 5 && $j != 0; $i++){ echo "\$i = $i; \$j = $j\n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
2 jumps found. (Code = 44) Position 1 = 15, Position 2 = 3
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 14
Branch analysis from position: 12
Branch analysis from position: 14
Branch analysis from position: 14
filename:       /in/FT2p9
function name:  (null)
number of ops:  16
compiled vars:  !0 = $i, !1 = $j
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 0
          1        ASSIGN                                                   !1, 1
          2      > JMP                                                      ->10
    4     3    >   ROPE_INIT                                     5  ~5      '%24i+%3D+'
          4        ROPE_ADD                                      1  ~5      ~5, !0
          5        ROPE_ADD                                      2  ~5      ~5, '%3B+%24j+%3D+'
          6        ROPE_ADD                                      3  ~5      ~5, !1
          7        ROPE_END                                      4  ~4      ~5, '%0A'
          8        ECHO                                                     ~4
    3     9        PRE_INC                                                  !0
         10    >   IS_SMALLER                                       ~9      !0, 5
         11      > JMPZ_EX                                          ~9      ~9, ->14
         12    >   IS_NOT_EQUAL                                     ~10     !1, 0
         13        BOOL                                             ~9      ~10
         14    > > JMPNZ                                                    ~9, ->3
    5    15    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.02 ms | 1002 KiB | 13 Q