3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 1; $$a = 4; echo $$a; switch ($a) { case 1 : echo "a"; default : echo "b"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 8
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/GtmZN
function name:  (null)
number of ops:  11
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 1
    3     1        FETCH_W                      local               $2      !0
          2        ASSIGN                                                   $2, 4
    4     3        FETCH_R                      local               ~4      !0
          4        ECHO                                                     ~4
    7     5        IS_EQUAL                                                 !0, 1
          6      > JMPNZ                                                    ~5, ->8
          7    > > JMP                                                      ->9
          8    >   ECHO                                                     'a'
    8     9    >   ECHO                                                     'b'
    9    10      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.06 ms | 1392 KiB | 13 Q