3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Sylius\Bundle\ResourceBundle\DependencyInjection; class SyliusResourceExtension { function test() { echo call_user_func(array(str_replace('Extension', 'Bundle', 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/Ea0K1
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/Ea0K1
function name:  test
number of ops:  16
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%5Cstr_replace'
          2        SEND_VAL_EX                                              'Extension'
          3        SEND_VAL_EX                                              'Bundle'
          4        INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Cget_class'
          5        FETCH_THIS                                       $0      
          6        SEND_VAR_EX                                              $0
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR_NO_REF_EX                                       $1
          9        DO_FCALL                                      0  $2      
         10        INIT_ARRAY                                       ~3      $2
         11        ADD_ARRAY_ELEMENT                                ~3      'bar'
         12        SEND_VAL_EX                                              ~3
         13        DO_FCALL                                      0  $4      
         14        ECHO                                                     $4
    7    15      > 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/Ea0K1
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/Ea0K1
function name:  test
number of ops:  16
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%5Cstr_replace'
          2        SEND_VAL_EX                                              'Extension'
          3        SEND_VAL_EX                                              'Bundle'
          4        INIT_NS_FCALL_BY_NAME                                    'Sylius%5CBundle%5CResourceBundle%5CDependencyInjection%5Cget_class'
          5        FETCH_THIS                                       $0      
          6        SEND_VAR_EX                                              $0
          7        DO_FCALL                                      0  $1      
          8        SEND_VAR_NO_REF_EX                                       $1
          9        DO_FCALL                                      0  $2      
         10        INIT_ARRAY                                       ~3      $2
         11        ADD_ARRAY_ELEMENT                                ~3      'bar'
         12        SEND_VAL_EX                                              ~3
         13        DO_FCALL                                      0  $4      
         14        ECHO                                                     $4
    7    15      > 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/Ea0K1
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:
145.24 ms | 1400 KiB | 19 Q