3v4l.org

run code in 300+ 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:  13
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        INIT_FCALL                                               'class_exists'
          6        SEND_VAL                                                 'Foo'
          7        DO_ICALL                                         $1      
          8        SEND_VAR                                                 $1
          9        DO_ICALL                                                 
    8    10        FETCH_CLASS_CONSTANT                             ~3      'Foo', 'EXAMPLE'
         11        ECHO                                                     ~3
    9    12      > RETURN                                                   1

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.85 ms | 1011 KiB | 16 Q