3v4l.org

run code in 300+ PHP versions simultaneously
<?php $statusValue = 2; switch ( $statusValue ) { case 0: // fall-through case 2: try { echo 'Trying 2', PHP_EOL; return; } finally { echo 'Executing finally', PHP_EOL; } case 3: echo 'Falling through to 3', PHP_EOL; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 3, Position 2 = 8
Branch analysis from position: 3
2 jumps found. (Code = 44) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 17
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 20
Branch analysis from position: 20
Branch analysis from position: 8
2 jumps found. (Code = 162) Position 1 = 14, Position 2 = 11
Branch analysis from position: 14
1 jumps found. (Code = 163) Position 1 = -2
Branch analysis from position: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/a4nlI
function name:  (null)
number of ops:  21
compiled vars:  !0 = $statusValue
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 2
    6     1        IS_EQUAL                                                 !0, 0
          2      > JMPNZ                                                    ~2, ->8
    8     3    >   IS_EQUAL                                                 !0, 2
          4      > JMPNZ                                                    ~2, ->8
   15     5    >   IS_EQUAL                                                 !0, 3
          6      > JMPNZ                                                    ~2, ->17
          7    > > JMP                                                      ->20
   10     8    >   ECHO                                                     'Trying+2'
          9        ECHO                                                     '%0A'
   11    10      > FAST_CALL                                                ->14
         11    > > RETURN                                                   null
   12    12*       FAST_CALL                                                ->14
         13*       JMP                                                      ->17
   13    14    >   ECHO                                                     'Executing+finally'
         15        ECHO                                                     '%0A'
         16      > FAST_RET                                                 
   16    17    >   ECHO                                                     'Falling+through+to+3'
         18        ECHO                                                     '%0A'
   17    19      > JMP                                                      ->20
   18    20    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.82 ms | 1398 KiB | 13 Q