3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Foo\Bar; class A {} class B { public $foo = [ A::class => 'bar' ]; } $b = new B; var_dump($b->foo);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2AWni
function name:  (null)
number of ops:  9
compiled vars:  !0 = $b
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $1      'Foo%5CBar%5CB'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        INIT_NS_FCALL_BY_NAME                                    'Foo%5CBar%5Cvar_dump'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_OBJ_FUNC_ARG                               $4      !0, 'foo'
          6        SEND_FUNC_ARG                                            $4
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Foo\Bar\A: [no user functions]
Class Foo\Bar\B: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
192.17 ms | 1394 KiB | 15 Q