3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.04 ms | 1393 KiB | 13 Q