3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace clases; abstract class MyParent{ abstract function name(); } class Foo extends MyParent{ function name(){ return "Foo class"; } } class Bar extends MyParent{ function name(){ return "Bar class"; } } function doSomething(\clases\MyParent $object){ echo 'Good';} $object = new Foo(); doSomething($object); $object2 = new \stdClass(); doSomething($object2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tqV3s
function name:  (null)
number of ops:  13
compiled vars:  !0 = $object, !1 = $object2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $2      'clases%5CFoo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
   13     3        INIT_NS_FCALL_BY_NAME                                    'clases%5CdoSomething'
          4        SEND_VAR_EX                                              !0
          5        DO_FCALL                                      0          
   15     6        NEW                                              $6      'stdClass'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $6
   17     9        INIT_NS_FCALL_BY_NAME                                    'clases%5CdoSomething'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Function clases%5Cdosomething:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tqV3s
function name:  clases\doSomething
number of ops:  3
compiled vars:  !0 = $object
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   RECV                                             !0      
          1        ECHO                                                     'Good'
          2      > RETURN                                                   null

End of function clases%5Cdosomething

Class clases\MyParent:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tqV3s
function name:  name
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E > > RETURN                                                   null

End of function name

End of class clases\MyParent.

Class clases\Foo:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tqV3s
function name:  name
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E > > RETURN                                                   'Foo+class'
          1*     > RETURN                                                   null

End of function name

End of class clases\Foo.

Class clases\Bar:
Function name:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tqV3s
function name:  name
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E > > RETURN                                                   'Bar+class'
          1*     > RETURN                                                   null

End of function name

End of class clases\Bar.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.6 ms | 1402 KiB | 16 Q