3v4l.org

run code in 300+ PHP versions simultaneously
<?php eval(' namespace Foo { class Bar { const Baz = 42; } } '); const MyFoo = Foo\Bar::Baz; var_dump(MyFoo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oiM7k
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INCLUDE_OR_EVAL                                          '%0Anamespace+Foo+%7B%0A++++class+Bar+%7B%0A++++++++const+Baz+%3D+42%3B%0A++++%7D%0A%7D%0A', EVAL
   11     1        DECLARE_CONST                                            'MyFoo', <const ast>
   13     2        INIT_FCALL                                               'var_dump'
          3        FETCH_CONSTANT                                   ~1      'MyFoo'
          4        SEND_VAL                                                 ~1
          5        DO_ICALL                                                 
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.93 ms | 1393 KiB | 15 Q