3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait T { protected $prop = "foo"; } class Base { protected $prop = "base"; } class Bar extends Base{ use T; protected $prop = "bar"; public function show(){ echo $this->prop; } } $x = new Bar; $x->show();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mMZl1
function name:  (null)
number of ops:  7
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'bar', 'base'
   19     1        NEW                                              $1      'Bar'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_METHOD_CALL                                         !0, 'show'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class T: [no user functions]
Class Base: [no user functions]
Class Bar:
Function show:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/mMZl1
function name:  show
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_OBJ_R                                      ~0      'prop'
          1        ECHO                                                     ~0
          2      > RETURN                                                   null

End of function show

End of class Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.84 ms | 1384 KiB | 13 Q