3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Something; class X{} class Y{} class Z{} namespace Somewhere; use Something; class A { public $x; public function __construct() { $this->x = new Something\X(); } } $a = new A(); var_dump($a->x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bbhd
function name:  (null)
number of ops:  9
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   NEW                                              $1      'Somewhere%5CA'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   23     3        INIT_NS_FCALL_BY_NAME                                    'Somewhere%5Cvar_dump'
          4        CHECK_FUNC_ARG                                           
          5        FETCH_OBJ_FUNC_ARG                               $4      !0, 'x'
          6        SEND_FUNC_ARG                                            $4
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class Something\X: [no user functions]
Class Something\Y: [no user functions]
Class Something\Z: [no user functions]
Class Somewhere\A:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3bbhd
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   NEW                                              $1      'Something%5CX'
          1        DO_FCALL                                      0          
          2        ASSIGN_OBJ                                               'x'
          3        OP_DATA                                                  $1
   19     4      > RETURN                                                   null

End of function __construct

End of class Somewhere\A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
172 ms | 1395 KiB | 15 Q