3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ClassThatExists { // } $class = new ClassThatExists(); if ($class instanceof NonExistentClass) { var_dump('instanceof NonExistentClass'); } if ($class instanceof ClassThatExists) { var_dump('instanceof ClassThatExists'); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 13
Branch analysis from position: 10
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 13
Branch analysis from position: 8
filename:       /in/rrQOB
function name:  (null)
number of ops:  14
compiled vars:  !0 = $class
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'ClassThatExists'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        INSTANCEOF                                               !0, 'NonExistentClass'
          4      > JMPZ                                                     ~4, ->8
   11     5    >   INIT_FCALL                                               'var_dump'
          6        SEND_VAL                                                 'instanceof+NonExistentClass'
          7        DO_ICALL                                                 
   14     8    >   INSTANCEOF                                               !0, 'ClassThatExists'
          9      > JMPZ                                                     ~6, ->13
   15    10    >   INIT_FCALL                                               'var_dump'
         11        SEND_VAL                                                 'instanceof+ClassThatExists'
         12        DO_ICALL                                                 
   16    13    > > RETURN                                                   1

Class ClassThatExists: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.69 ms | 1450 KiB | 14 Q