3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * this is the CHILD class */ class CustomCourse extends BaseContact/*BaseCourse*/ { public function toArray() { $values = parent::toArray(); // do some more with $values here return $values; } } /** * this is the PARENT class */ class BaseContact /*extends Course*/ { public function toArray($platform = GOLF_PLATFORM) { $values = array(); $values['user_id'] = $this->getUserId(); // do some more in here return $values; } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8kLLM
function name:  (null)
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   DECLARE_CLASS                                            'customcourse', 'basecontact'
   28     1      > RETURN                                                   1

Class CustomCourse:
Function toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8kLLM
function name:  toArray
number of ops:  5
compiled vars:  !0 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'toArray'
          1        DO_FCALL                                      0  $1      
          2        ASSIGN                                                   !0, $1
   11     3      > RETURN                                                   !0
   12     4*     > RETURN                                                   null

End of function toarray

End of class CustomCourse.

Class BaseContact:
Function toarray:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8kLLM
function name:  toArray
number of ops:  8
compiled vars:  !0 = $platform, !1 = $values
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   RECV_INIT                                        !0      <const ast>
   22     1        ASSIGN                                                   !1, <array>
   23     2        INIT_METHOD_CALL                                         'getUserId'
          3        DO_FCALL                                      0  $4      
          4        ASSIGN_DIM                                               !1, 'user_id'
          5        OP_DATA                                                  $4
   25     6      > RETURN                                                   !1
   26     7*     > RETURN                                                   null

End of function toarray

End of class BaseContact.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.39 ms | 1394 KiB | 13 Q