3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Drupal { } if (class_exists('FakeDrupal') && defined('FakeDrupal::CORE_COMPATIBILITY')) { echo FakeDrupal::CORE_COMPATIBILITY; } if (class_exists('Drupal') && defined('Drupal::CORE_COMPATIBILITY')) { echo Drupal::CORE_COMPATIBILITY; } if (class_exists('Drupal1') && defined('Drupal1::CORE_COMPATIBILITY')) { echo Drupal1::CORE_COMPATIBILITY; }
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 = 11
Branch analysis from position: 9
2 jumps found. (Code = 46) Position 1 = 15, Position 2 = 19
Branch analysis from position: 15
2 jumps found. (Code = 43) Position 1 = 20, Position 2 = 22
Branch analysis from position: 20
2 jumps found. (Code = 46) Position 1 = 26, Position 2 = 30
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 31, Position 2 = 33
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
Branch analysis from position: 30
Branch analysis from position: 22
Branch analysis from position: 19
Branch analysis from position: 11
Branch analysis from position: 8
filename:       /in/USCDv
function name:  (null)
number of ops:  34
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                               'class_exists'
          1        SEND_VAL                                                 'FakeDrupal'
          2        DO_ICALL                                         $0      
          3      > JMPZ_EX                                          ~1      $0, ->8
          4    >   INIT_FCALL                                               'defined'
          5        SEND_VAL                                                 'FakeDrupal%3A%3ACORE_COMPATIBILITY'
          6        DO_ICALL                                         $2      
          7        BOOL                                             ~1      $2
          8    > > JMPZ                                                     ~1, ->11
    6     9    >   FETCH_CLASS_CONSTANT                             ~3      'FakeDrupal', 'CORE_COMPATIBILITY'
         10        ECHO                                                     ~3
    9    11    >   INIT_FCALL                                               'class_exists'
         12        SEND_VAL                                                 'Drupal'
         13        DO_ICALL                                         $4      
         14      > JMPZ_EX                                          ~5      $4, ->19
         15    >   INIT_FCALL                                               'defined'
         16        SEND_VAL                                                 'Drupal%3A%3ACORE_COMPATIBILITY'
         17        DO_ICALL                                         $6      
         18        BOOL                                             ~5      $6
         19    > > JMPZ                                                     ~5, ->22
   10    20    >   FETCH_CLASS_CONSTANT                             ~7      'Drupal', 'CORE_COMPATIBILITY'
         21        ECHO                                                     ~7
   13    22    >   INIT_FCALL                                               'class_exists'
         23        SEND_VAL                                                 'Drupal1'
         24        DO_ICALL                                         $8      
         25      > JMPZ_EX                                          ~9      $8, ->30
         26    >   INIT_FCALL                                               'defined'
         27        SEND_VAL                                                 'Drupal1%3A%3ACORE_COMPATIBILITY'
         28        DO_ICALL                                         $10     
         29        BOOL                                             ~9      $10
         30    > > JMPZ                                                     ~9, ->33
   14    31    >   FETCH_CLASS_CONSTANT                             ~11     'Drupal1', 'CORE_COMPATIBILITY'
         32        ECHO                                                     ~11
   15    33    > > RETURN                                                   1

Class Drupal: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.27 ms | 1400 KiB | 17 Q