3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface Interfaze { public function hello($name); } class ParentClazz implements Interfaze { public function __construct() { $this->hello(); } public function hello($name) { echo "Hello, $name!"; } } class ChildClazz extends ParentClazz { public function __construct() { echo "Loaded from the child class."; parent::__construct(); } } $childclass = new ChildClazz("Matthew");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFKFj
function name:  (null)
number of ops:  7
compiled vars:  !0 = $childclass
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   DECLARE_CLASS                                            'parentclazz'
   19     1        DECLARE_CLASS                                            'childclazz', 'parentclazz'
   27     2        NEW                                              $1      'ChildClazz'
          3        SEND_VAL_EX                                              'Matthew'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !0, $1
          6      > RETURN                                                   1

Class Interfaze:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFKFj
function name:  hello
number of ops:  2
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function hello

End of class Interfaze.

Class ParentClazz:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFKFj
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_METHOD_CALL                                         'hello'
          1        DO_FCALL                                      0          
   12     2      > RETURN                                                   null

End of function __construct

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFKFj
function name:  hello
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   RECV                                             !0      
   15     1        ROPE_INIT                                     3  ~2      'Hello%2C+'
          2        ROPE_ADD                                      1  ~2      ~2, !0
          3        ROPE_END                                      2  ~1      ~2, '%21'
          4        ECHO                                                     ~1
   16     5      > RETURN                                                   null

End of function hello

End of class ParentClazz.

Class ChildClazz:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hFKFj
function name:  __construct
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   22     0  E >   ECHO                                                     'Loaded+from+the+child+class.'
   23     1        INIT_STATIC_METHOD_CALL                                  
          2        DO_FCALL                                      0          
   24     3      > RETURN                                                   null

End of function __construct

End of class ChildClazz.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.7 ms | 1395 KiB | 13 Q