3v4l.org

run code in 300+ PHP versions simultaneously
<?php while(($i = (!isset($i) ? 0 : ++$i)) < 5){ echo "$i \n"; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 1
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 1
2 jumps found. (Code = 43) Position 1 = 7, Position 2 = 9
Branch analysis from position: 7
Branch analysis from position: 9
2 jumps found. (Code = 44) Position 1 = 14, Position 2 = 1
Branch analysis from position: 14
Branch analysis from position: 1
Branch analysis from position: 9
filename:       /in/3Fu4I
function name:  (null)
number of ops:  15
compiled vars:  !0 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > JMP                                                      ->4
    4     1    >   NOP                                                      
          2        FAST_CONCAT                                      ~1      !0, '+%0A'
          3        ECHO                                                     ~1
    3     4    >   ISSET_ISEMPTY_CV                                 ~2      !0
          5        BOOL_NOT                                         ~3      ~2
          6      > JMPZ                                                     ~3, ->9
          7    >   QM_ASSIGN                                        ~4      0
          8      > JMP                                                      ->11
          9    >   PRE_INC                                          ~5      !0
         10        QM_ASSIGN                                        ~4      ~5
         11    >   ASSIGN                                           ~6      !0, ~4
         12        IS_SMALLER                                               ~6, 5
         13      > JMPNZ                                                    ~7, ->1
    5    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.85 ms | 1394 KiB | 13 Q