3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Drupal { } if (class_exists('Drupal') && defined('Drupal::CORE_COMPATIBILITY')) { echo "exists"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 8
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 10
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 10
Branch analysis from position: 8
filename:       /in/kiEXY
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'Drupal'
          2        DO_ICALL                                         $0      
          3      > JMPZ_EX                                          ~1      $0, ->8
          4    >   INIT_FCALL                                               'defined'
          5        SEND_VAL                                                 'Drupal%3A%3ACORE_COMPATIBILITY'
          6        DO_ICALL                                         $2      
          7        BOOL                                             ~1      $2
          8    > > JMPZ                                                     ~1, ->10
    6     9    >   ECHO                                                     'exists'
    7    10    > > RETURN                                                   1

Class Drupal: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.13 ms | 1394 KiB | 17 Q