3v4l.org

run code in 300+ PHP versions simultaneously
<?php $filter = NULL; switch ($filter) { case 'hi': break; case NULL: echo 'hi'; break; }
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 = 62) Position 1 = -2
Branch analysis from position: 7
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/vbK5S
function name:  (null)
number of ops:  10
compiled vars:  !0 = $filter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, null
    7     1        IS_EQUAL                                                 !0, 'hi'
          2      > JMPNZ                                                    ~2, ->6
    6     3    >   IS_EQUAL                                                 !0, null
          4      > JMPNZ                                                    ~2, ->7
          5    > > JMP                                                      ->9
    8     6    > > JMP                                                      ->9
   10     7    >   ECHO                                                     'hi'
   11     8      > JMP                                                      ->9
   12     9    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.81 ms | 1393 KiB | 13 Q