3v4l.org

run code in 300+ PHP versions simultaneously
<?php $STOP = 5; $i = 0; $j = 5; while($STOP-- > 0) { echo "i = $i ; j = $j\n"; if(($i++) ( $j++) ) { echo "2up\n"; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 20, Position 2 = 4
Branch analysis from position: 20
Branch analysis from position: 4
Branch analysis from position: 17
filename:       /in/c7jKZ
function name:  (null)
number of ops:  21
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                                                   !1, 0
    5     2        ASSIGN                                                   !2, 5
    6     3      > JMP                                                      ->17
    8     4    >   ROPE_INIT                                     5  ~7      'i+%3D+'
          5        ROPE_ADD                                      1  ~7      ~7, !1
          6        ROPE_ADD                                      2  ~7      ~7, '+%3B+j+%3D+'
          7        ROPE_ADD                                      3  ~7      ~7, !2
          8        ROPE_END                                      4  ~6      ~7, '%0A'
          9        ECHO                                                     ~6
   10    10        POST_INC                                         ~10     !1
         11        INIT_DYNAMIC_CALL                                        ~10
         12        POST_INC                                         ~11     !2
         13        SEND_VAL_EX                                              ~11
         14        DO_FCALL                                      0  $12     
         15      > JMPZ                                                     $12, ->17
   11    16    >   ECHO                                                     '2up%0A'
    6    17    >   POST_DEC                                         ~13     !0
         18        IS_SMALLER                                               0, ~13
         19      > JMPNZ                                                    ~14, ->4
   17    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.62 ms | 1394 KiB | 13 Q