3v4l.org

run code in 300+ PHP versions simultaneously
<?php abstract class ItemMapperBase { public function newInstance($thing) { } } class RevtwoItemMapper extends ItemMapperBase { public function addThing($thing) {} } $first = ItemMapperBase::newInstance('foo'); $second = RevtwoItemMapper::addThing('bar'); function schedule_epg_import_queue_item(ItemMapperBase $mapper) { print_r($mapper); } $result = schedule_epg_import_queue_item($second);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2cul
function name:  (null)
number of ops:  13
compiled vars:  !0 = $first, !1 = $second, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   INIT_STATIC_METHOD_CALL                                  'ItemMapperBase', 'newInstance'
          1        SEND_VAL                                                 'foo'
          2        DO_FCALL                                      0  $3      
          3        ASSIGN                                                   !0, $3
   14     4        INIT_STATIC_METHOD_CALL                                  'RevtwoItemMapper', 'addThing'
          5        SEND_VAL                                                 'bar'
          6        DO_FCALL                                      0  $5      
          7        ASSIGN                                                   !1, $5
   20     8        INIT_FCALL                                               'schedule_epg_import_queue_item'
          9        SEND_VAR                                                 !1
         10        DO_FCALL                                      0  $7      
         11        ASSIGN                                                   !2, $7
         12      > RETURN                                                   1

Function schedule_epg_import_queue_item:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/L2cul
function name:  schedule_epg_import_queue_item
number of ops:  5
compiled vars:  !0 = $mapper
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   RECV                                             !0      
   17     1        INIT_FCALL                                               'print_r'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                                 
   18     4      > RETURN                                                   null

End of function schedule_epg_import_queue_item

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

End of function newinstance

End of class ItemMapperBase.

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

End of function addthing

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

End of function newinstance

End of class RevtwoItemMapper.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
203.46 ms | 1402 KiB | 16 Q