3v4l.org

run code in 300+ PHP versions simultaneously
<?php switch(true) { case is_null(null): echo "OK!"; break; case is_integer(2): echo "OK!"; break; case is_null(2): echo "not OK!"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 44) Position 1 = 2, Position 2 = 7
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 4, Position 2 = 9
Branch analysis from position: 4
2 jumps found. (Code = 44) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
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: 11
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
filename:       /in/r18lb
function name:  (null)
number of ops:  13
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   TYPE_CHECK                                    2          null
          1      > JMPNZ                                                    ~1, ->7
    6     2    >   TYPE_CHECK                                   16          2
          3      > JMPNZ                                                    ~2, ->9
    9     4    >   TYPE_CHECK                                    2          2
          5      > JMPNZ                                                    ~3, ->11
          6    > > JMP                                                      ->12
    4     7    >   ECHO                                                     'OK%21'
    5     8      > JMP                                                      ->12
    7     9    >   ECHO                                                     'OK%21'
    8    10      > JMP                                                      ->12
   10    11    >   ECHO                                                     'not+OK%21'
   11    12    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.96 ms | 1394 KiB | 13 Q