3v4l.org

run code in 300+ PHP versions simultaneously
<?php while((!isset($i) ? $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 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
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 = 10
Branch analysis from position: 7
Branch analysis from position: 10
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: 10
filename:       /in/R9klf
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, ->10
          7    >   ASSIGN                                           ~4      !0, 0
          8        QM_ASSIGN                                        ~5      ~4
          9      > JMP                                                      ->12
         10    >   PRE_INC                                          ~6      !0
         11        QM_ASSIGN                                        ~5      ~6
         12    >   IS_SMALLER                                               ~5, 5
         13      > JMPNZ                                                    ~7, ->1
    5    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.15 ms | 1393 KiB | 13 Q