3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface I {} var_dump(class_exists('cI')); var_dump(class_exists('C')); class cI implements I {} class C {} var_dump(class_exists('cI')); var_dump(class_exists('C'));
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/2YEjc
function name:  (null)
number of ops:  30
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
   5     1        INIT_FCALL                                               'var_dump'
         2        INIT_FCALL                                               'class_exists'
         3        SEND_VAL                                                 'cI'
         4        DO_ICALL                                         $1      
         5        SEND_VAR                                                 $1
         6        DO_ICALL                                                 
   6     7        INIT_FCALL                                               'var_dump'
         8        INIT_FCALL                                               'class_exists'
         9        SEND_VAL                                                 'C'
        10        DO_ICALL                                         $3      
        11        SEND_VAR                                                 $3
        12        DO_ICALL                                                 
   8    13        DECLARE_CLASS                                    $5      '%00ci%2Fin%2F2YEjc0x7fd2de32306a', 'ci'
        14        ADD_INTERFACE                                            $5, 'I'
        15        VERIFY_ABSTRACT_CLASS                                    $5
   9    16        NOP                                                      
  11    17        INIT_FCALL                                               'var_dump'
        18        INIT_FCALL                                               'class_exists'
        19        SEND_VAL                                                 'cI'
        20        DO_ICALL                                         $7      
        21        SEND_VAR                                                 $7
        22        DO_ICALL                                                 
  12    23        INIT_FCALL                                               'var_dump'
        24        INIT_FCALL                                               'class_exists'
        25        SEND_VAL                                                 'C'
        26        DO_ICALL                                         $9      
        27        SEND_VAR                                                 $9
        28        DO_ICALL                                                 
        29      > RETURN                                                   1

Class I: [no user functions]
Class cI: [no user functions]
Class C: [no user functions]

Generated using Vulcan Logic Dumper, using php 7.3.0