3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.4 ms | 1394 KiB | 13 Q