3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sylius\Bundle\ResourceBundle\DependencyInjection; class SyliusResourceExtension { function test() { echo call_user_func(array(get_class($this), 'bar')); } function bar() { echo 'foo'; } } namespace Sylius\Bundle\ProductBundle\DependencyInjection; use Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension; { class SyliusProductExtension extends SyliusResourceExtension {} } $a = new SyliusProductExtension(); $a->test();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJ7WD
function name:  (null)
number of ops:  6
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   20     0  E >   NEW                                              $1      'Sylius%5CBundle%5CProductBundle%5CDependencyInjection%5CSyliusProductExtension'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   21     3        INIT_METHOD_CALL                                         !0, 'test'
          4        DO_FCALL                                      0          
          5      > RETURN                                                   1

Class Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJ7WD
function name:  test
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Ccall_user_func'
          1        INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Cget_class'
          2        FETCH_THIS                                       $0      
          3        SEND_VAR_EX                                              $0
          4        DO_FCALL                                      0  $1      
          5        INIT_ARRAY                                       ~2      $1
          6        ADD_ARRAY_ELEMENT                                ~2      'bar'
          7        SEND_VAL_EX                                              ~2
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
    7    10      > RETURN                                                   null

End of function test

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJ7WD
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'foo'
   10     1      > RETURN                                                   null

End of function bar

End of class Sylius\Bundle\ResourceBundle\DependencyInjection\SyliusResourceExtension.

Class Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJ7WD
function name:  test
number of ops:  11
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Ccall_user_func'
          1        INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Cget_class'
          2        FETCH_THIS                                       $0      
          3        SEND_VAR_EX                                              $0
          4        DO_FCALL                                      0  $1      
          5        INIT_ARRAY                                       ~2      $1
          6        ADD_ARRAY_ELEMENT                                ~2      'bar'
          7        SEND_VAL_EX                                              ~2
          8        DO_FCALL                                      0  $3      
          9        ECHO                                                     $3
    7    10      > RETURN                                                   null

End of function test

Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rJ7WD
function name:  bar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   ECHO                                                     'foo'
   10     1      > RETURN                                                   null

End of function bar

End of class Sylius\Bundle\ProductBundle\DependencyInjection\SyliusProductExtension.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
186.69 ms | 1400 KiB | 17 Q