3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.09 ms | 1397 KiB | 13 Q