3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = 9; switch($a) { case 2: { // nothing } break; case 9: { echo 'something'; } break; default: { throw new Exception; } }
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 = 7
Branch analysis from position: 5
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
1 jumps found. (Code = 108) Position 1 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/K1uCJ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 9
    6     1        IS_EQUAL                                                 !0, 2
          2      > JMPNZ                                                    ~2, ->6
   10     3    >   IS_EQUAL                                                 !0, 9
          4      > JMPNZ                                                    ~2, ->7
          5    > > JMP                                                      ->9
    8     6    > > JMP                                                      ->12
   11     7    >   ECHO                                                     'something'
   12     8      > JMP                                                      ->12
   15     9    >   NEW                                              $3      'Exception'
         10        DO_FCALL                                      0          
         11      > THROW                                         0          $3
   17    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.54 ms | 1393 KiB | 13 Q