3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.98 ms | 1384 KiB | 13 Q