3v4l.org

run code in 300+ PHP versions simultaneously
<?php $categoryIdentifier = array(); switch ($categoryIdentifier) { case is_int($categoryIdentifier): echo 'int'; break; case is_array($categoryIdentifier): echo 'array'; break; default: echo 'default'; break; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 7, Position 2 = 10
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 14
Branch analysis from position: 14
filename:       /in/ghkau
function name:  (null)
number of ops:  15
compiled vars:  !0 = $categoryIdentifier
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    6     1        TYPE_CHECK                                   16  ~3      !0
          2        IS_EQUAL                                                 !0, ~3
          3      > JMPNZ                                                    ~2, ->8
    9     4    >   TYPE_CHECK                                  128  ~4      !0
          5        IS_EQUAL                                                 !0, ~4
          6      > JMPNZ                                                    ~2, ->10
          7    > > JMP                                                      ->12
    7     8    >   ECHO                                                     'int'
    8     9      > JMP                                                      ->14
   10    10    >   ECHO                                                     'array'
   11    11      > JMP                                                      ->14
   13    12    >   ECHO                                                     'default'
   14    13      > JMP                                                      ->14
   15    14    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.56 ms | 1394 KiB | 13 Q