3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class MyClassOne { protected function hello($name) { return "Hello {$name}"; } } class MyClassMain extends MyClassOne { public function say($name) { echo $this->hello($name); } } $mcm = new MyClassMain(); $mcm->say("Chandra");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hveP
function name:  (null)
number of ops:  7
compiled vars:  !0 = $mcm
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   17     0  E >   NEW                                              $1      'MyClassMain'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   19     3        INIT_METHOD_CALL                                         !0, 'say'
          4        SEND_VAL_EX                                              'Chandra'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class MyClassOne:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hveP
function name:  hello
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Hello+', !0
          3      > RETURN                                                   ~1
    7     4*     > RETURN                                                   null

End of function hello

End of class MyClassOne.

Class MyClassMain:
Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hveP
function name:  say
number of ops:  6
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   RECV                                             !0      
   13     1        INIT_METHOD_CALL                                         'hello'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0  $1      
          4        ECHO                                                     $1
   14     5      > RETURN                                                   null

End of function say

Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9hveP
function name:  hello
number of ops:  5
compiled vars:  !0 = $name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        NOP                                                      
          2        FAST_CONCAT                                      ~1      'Hello+', !0
          3      > RETURN                                                   ~1
    7     4*     > RETURN                                                   null

End of function hello

End of class MyClassMain.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
260.93 ms | 1395 KiB | 14 Q