3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.77 ms | 1394 KiB | 13 Q