3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.01 ms | 1393 KiB | 13 Q