3v4l.org

run code in 500+ PHP versions simultaneously
<?php define('OTHER_CONST', 'some value'); class Foo { const EXAMPLE = OTHER_CONST; } var_dump(class_exists('Foo')); echo Foo::EXAMPLE;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bjPor
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'define'
          1        SEND_VAL                                                     'OTHER_CONST'
          2        SEND_VAL                                                     'some+value'
          3        DO_ICALL                                                     
    7     4        INIT_FCALL                                                   'var_dump'
          5        FRAMELESS_ICALL_1                class_exists        ~1      'Foo'
          6        SEND_VAL                                                     ~1
          7        DO_ICALL                                                     
    8     8        FETCH_CLASS_CONSTANT                                 ~3      'Foo', 'EXAMPLE'
          9        ECHO                                                         ~3
    9    10      > RETURN                                                       1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
160.62 ms | 1859 KiB | 16 Q