3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SuperClass { public function bar($one, $two){ echo $one . "--" . $two; } } class FacadeClass { private $super; public function __construct(SuperClass $super){ $this->super = $super; } public function bar(){ return $this->super->bar(123, 456); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NLUIg
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   1

Class SuperClass:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NLUIg
function name:  bar
number of ops:  6
compiled vars:  !0 = $one, !1 = $two
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    6     2        CONCAT                                           ~2      !0, '--'
          3        CONCAT                                           ~3      ~2, !1
          4        ECHO                                                     ~3
    7     5      > RETURN                                                   null

End of function bar

End of class SuperClass.

Class FacadeClass:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NLUIg
function name:  __construct
number of ops:  4
compiled vars:  !0 = $super
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        ASSIGN_OBJ                                               'super'
          2        OP_DATA                                                  !0
   16     3      > RETURN                                                   null

End of function __construct

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NLUIg
function name:  bar
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   FETCH_OBJ_R                                      ~0      'super'
          1        INIT_METHOD_CALL                                         ~0, 'bar'
          2        SEND_VAL_EX                                              123
          3        SEND_VAL_EX                                              456
          4        DO_FCALL                                      0  $1      
          5      > RETURN                                                   $1
   20     6*     > RETURN                                                   null

End of function bar

End of class FacadeClass.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.15 ms | 1399 KiB | 13 Q