3v4l.org

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

Class ItemMapperBase:
Function newinstance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G6SMV
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 newinstance:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/G6SMV
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:
156.46 ms | 1394 KiB | 13 Q