3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(class_exists('Error')); var_dump(!is_subclass_of('Error', 'Exception')); $e = new \Error(); var_dump($e instanceof Error);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/J9G1K
function name:  (null)
number of ops:  22
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'var_dump'
          1        INIT_FCALL                                               'class_exists'
          2        SEND_VAL                                                 'Error'
          3        DO_ICALL                                         $1      
          4        SEND_VAR                                                 $1
          5        DO_ICALL                                                 
    4     6        INIT_FCALL                                               'var_dump'
          7        INIT_FCALL                                               'is_subclass_of'
          8        SEND_VAL                                                 'Error'
          9        SEND_VAL                                                 'Exception'
         10        DO_ICALL                                         $3      
         11        BOOL_NOT                                         ~4      $3
         12        SEND_VAL                                                 ~4
         13        DO_ICALL                                                 
    5    14        NEW                                              $6      'Error'
         15        DO_FCALL                                      0          
         16        ASSIGN                                                   !0, $6
    6    17        INIT_FCALL                                               'var_dump'
         18        INSTANCEOF                                       ~9      !0, 'Error'
         19        SEND_VAL                                                 ~9
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.58 ms | 1386 KiB | 19 Q