3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.36 ms | 1393 KiB | 13 Q