3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var; switch (false) { case isset($var): $var = ''; case $var: // delberiate fall through, case $var is *not* caught, but we end here anyways. $var = 1; case is_string($var): // delebirate fall through, case is_string($var) is *not* caught, but we end here anyways. $var = (string) $var; /* case customGuardFunction() */ default: echo "All checks passed!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 6
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 3, Position 2 = 7
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2PpVX
function name:  (null)
number of ops:  12
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ISSET_ISEMPTY_CV                                         !0
          1      > JMPZ                                                     ~2, ->6
    8     2    > > JMPZ                                                     !0, ->7
   11     3    >   TYPE_CHECK                                   64          !0
          4      > JMPZ                                                     ~3, ->8
          5    > > JMP                                                      ->10
    7     6    >   ASSIGN                                                   !0, ''
   10     7    >   ASSIGN                                                   !0, 1
   13     8    >   CAST                                          6  ~6      !0
          9        ASSIGN                                                   !0, ~6
   16    10    >   ECHO                                                     'All+checks+passed%21'
   17    11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.97 ms | 1393 KiB | 13 Q