3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface SqlContentEntityStorageInterface { public function getTableMapping(array $storage_definitions = NULL); } class SqlContentEntityStorage implements SqlContentEntityStorageInterface { public function getTableMapping(array $storage_definitions = NULL) { $args = func_get_args(); if (isset($args[1])) { $entity_type = $args[1]; print $entity_type; } } } class CustomStorage extends SqlContentEntityStorage { public function getTableMapping(array $storage_definitions = NULL) { parent::getTableMapping($storage_definitions); } } class CustomStorageNoParent extends SqlContentEntityStorage { public function getTableMapping(array $storage_definitions = NULL) { } } (new SqlContentEntityStorage)->getTableMapping(); (new SqlContentEntityStorage)->getTableMapping([], 'node'); (new CustomStorage())->getTableMapping(); (new CustomStorageNoParent())->getTableMapping();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jVcdq
function name:  (null)
number of ops:  22
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'sqlcontententitystorage'
   19     1        DECLARE_CLASS                                            'customstorage', 'sqlcontententitystorage'
   25     2        DECLARE_CLASS                                            'customstoragenoparent', 'sqlcontententitystorage'
   31     3        NEW                                              $0      'SqlContentEntityStorage'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $0, 'getTableMapping'
          6        DO_FCALL                                      0          
   32     7        NEW                                              $3      'SqlContentEntityStorage'
          8        DO_FCALL                                      0          
          9        INIT_METHOD_CALL                                         $3, 'getTableMapping'
         10        SEND_VAL_EX                                              <array>
         11        SEND_VAL_EX                                              'node'
         12        DO_FCALL                                      0          
   33    13        NEW                                              $6      'CustomStorage'
         14        DO_FCALL                                      0          
         15        INIT_METHOD_CALL                                         $6, 'getTableMapping'
         16        DO_FCALL                                      0          
   34    17        NEW                                              $9      'CustomStorageNoParent'
         18        DO_FCALL                                      0          
         19        INIT_METHOD_CALL                                         $9, 'getTableMapping'
         20        DO_FCALL                                      0          
         21      > RETURN                                                   1

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

End of function gettablemapping

End of class SqlContentEntityStorageInterface.

Class SqlContentEntityStorage:
Function gettablemapping:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 5, Position 2 = 8
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 8
filename:       /in/jVcdq
function name:  getTableMapping
number of ops:  9
compiled vars:  !0 = $storage_definitions, !1 = $args, !2 = $entity_type
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   RECV_INIT                                        !0      null
   11     1        FUNC_GET_ARGS                                    ~3      
          2        ASSIGN                                                   !1, ~3
   12     3        ISSET_ISEMPTY_DIM_OBJ                         0          !1, 1
          4      > JMPZ                                                     ~5, ->8
   13     5    >   FETCH_DIM_R                                      ~6      !1, 1
          6        ASSIGN                                                   !2, ~6
   14     7        ECHO                                                     !2
   16     8    > > RETURN                                                   null

End of function gettablemapping

End of class SqlContentEntityStorage.

Class CustomStorage:
Function gettablemapping:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jVcdq
function name:  getTableMapping
number of ops:  5
compiled vars:  !0 = $storage_definitions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   RECV_INIT                                        !0      null
   21     1        INIT_STATIC_METHOD_CALL                                  'getTableMapping'
          2        SEND_VAR_EX                                              !0
          3        DO_FCALL                                      0          
   22     4      > RETURN                                                   null

End of function gettablemapping

End of class CustomStorage.

Class CustomStorageNoParent:
Function gettablemapping:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/jVcdq
function name:  getTableMapping
number of ops:  2
compiled vars:  !0 = $storage_definitions
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E >   RECV_INIT                                        !0      null
   28     1      > RETURN                                                   null

End of function gettablemapping

End of class CustomStorageNoParent.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
137.41 ms | 1002 KiB | 13 Q