3v4l.org

run code in 300+ PHP versions simultaneously
<?php // // MyClass // Created by Thijs van den Anker on 20/04/15. class MyClass { public function __construct(Foo $a) { die('in'); print($a->$baz); } } class Foo { public $baz = 'jada'; } class Bar { public $baz = 'dadeee'; } $foo = new Foo; $bar = new Bar; $a = new MyClass($foo); ?>
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YvrSg
function name:  (null)
number of ops:  11
compiled vars:  !0 = $foo, !1 = $bar, !2 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $3      'Foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   21     3        NEW                                              $6      'Bar'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $6
   22     6        NEW                                              $9      'MyClass'
          7        SEND_VAR_EX                                              !0
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !2, $9
   24    10      > RETURN                                                   1

Class MyClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/YvrSg
function name:  __construct
number of ops:  5
compiled vars:  !0 = $a, !1 = $baz
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   RECV                                             !0      
    7     1      > EXIT                                                     'in'
    8     2*       FETCH_OBJ_R                                      ~2      !0, !1
          3*       ECHO                                                     ~2
    9     4*     > RETURN                                                   null

End of function __construct

End of class MyClass.

Class Foo: [no user functions]
Class Bar: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
204.9 ms | 1394 KiB | 13 Q