3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "A-MTP-"; $i = 1; $j=1; $s=1; while ($i < 4) { $ch="$ch" ; $ch=$ch."".$s; echo $$ch; while($j < 13) { $j++; } $i++; }
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 = 19, Position 2 = 5
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 13
Branch analysis from position: 16
2 jumps found. (Code = 44) Position 1 = 19, Position 2 = 5
Branch analysis from position: 19
Branch analysis from position: 5
Branch analysis from position: 13
2 jumps found. (Code = 44) Position 1 = 16, Position 2 = 13
Branch analysis from position: 16
Branch analysis from position: 13
filename:       /in/Gr003
function name:  (null)
number of ops:  20
compiled vars:  !0 = $a, !1 = $i, !2 = $j, !3 = $s, !4 = $ch
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'A-MTP-'
    3     1        ASSIGN                                                   !1, 1
    4     2        ASSIGN                                                   !2, 1
    5     3        ASSIGN                                                   !3, 1
    6     4      > JMP                                                      ->17
    8     5    >   CAST                                          6  ~9      !4
          6        ASSIGN                                                   !4, ~9
    9     7        CONCAT                                           ~11     !4, ''
          8        CONCAT                                           ~12     ~11, !3
          9        ASSIGN                                                   !4, ~12
   10    10        FETCH_R                      local               ~14     !4
         11        ECHO                                                     ~14
   11    12      > JMP                                                      ->14
   13    13    >   PRE_INC                                                  !2
   11    14    >   IS_SMALLER                                               !2, 13
         15      > JMPNZ                                                    ~16, ->13
   15    16    >   PRE_INC                                                  !1
    6    17    >   IS_SMALLER                                               !1, 4
         18      > JMPNZ                                                    ~18, ->5
   17    19    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.38 ms | 1385 KiB | 13 Q