3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ThisAction extends Actions { protected $action_type = 'testing'; private function testing_more_stuff() { echo "more stuff"; } private function testing_stuff() { echo "just some {$this->action_type} stuff\n"; } } abstract class Actions implements Action_Interface { protected $action_type; public function __construct() { $this->testing_stuff(); $this->testing_more_stuff(); } abstract function testing_more_stuff(); } interface Action_Interface { function testing_stuff(); } $blah = new ThisAction;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  (null)
number of ops:  6
compiled vars:  !0 = $blah
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'thisaction', 'actions'
   15     1        DECLARE_CLASS                                            'actions'
   30     2        NEW                                              $1      'ThisAction'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
          5      > RETURN                                                   1

Class ThisAction:
Function testing_more_stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  testing_more_stuff
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     'more+stuff'
    8     1      > RETURN                                                   null

End of function testing_more_stuff

Function testing_stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  testing_stuff
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   ROPE_INIT                                     3  ~2      'just+some+'
          1        FETCH_OBJ_R                                      ~0      'action_type'
          2        ROPE_ADD                                      1  ~2      ~2, ~0
          3        ROPE_END                                      2  ~1      ~2, '+stuff%0A'
          4        ECHO                                                     ~1
   12     5      > RETURN                                                   null

End of function testing_stuff

End of class ThisAction.

Class Actions:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  __construct
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   18     0  E >   INIT_METHOD_CALL                                         'testing_stuff'
          1        DO_FCALL                                      0          
   19     2        INIT_METHOD_CALL                                         'testing_more_stuff'
          3        DO_FCALL                                      0          
   20     4      > RETURN                                                   null

End of function __construct

Function testing_more_stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  testing_more_stuff
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                   null

End of function testing_more_stuff

End of class Actions.

Class Action_Interface:
Function testing_stuff:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/X5fBM
function name:  testing_stuff
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   27     0  E > > RETURN                                                   null

End of function testing_stuff

End of class Action_Interface.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.71 ms | 1399 KiB | 13 Q