3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace NamespaceOne { class Test { public function test(){ $test = new Test; $test->standard_function(Other::static_function()); } public function standard_function($test){} } } namespace NamespaceTwo { class Other { public static function static_function(){} } } namespace { function simple(){ throw new Exception; } spl_autoload_register('simple'); $test = new \NamespaceOne\Test; $test->test(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AuFoT
function name:  (null)
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   24     0  E >   INIT_FCALL                                                   'spl_autoload_register'
          1        SEND_VAL                                                     'simple'
          2        DO_ICALL                                                     
   25     3        NEW                                                  $2      'NamespaceOne%5CTest'
          4        DO_FCALL                                          0          
          5        ASSIGN                                                       !0, $2
   26     6        INIT_METHOD_CALL                                             !0, 'test'
          7        DO_FCALL                                          0          
   27     8      > RETURN                                                       1

Function simple:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 108) Position 1 = -2
filename:       /in/AuFoT
function name:  simple
number of ops:  4
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E >   NEW                                                  $0      'Exception'
          1        DO_FCALL                                          0          
          2      > THROW                                             0          $0
   22     3*     > RETURN                                                       null

End of function simple

Class NamespaceOne\Test:
Function test:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/AuFoT
function name:  test
number of ops:  9
compiled vars:  !0 = $test
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   NEW                                                  $1      'NamespaceOne%5CTest'
          1        DO_FCALL                                          0          
          2        ASSIGN                                                       !0, $1
    6     3        INIT_METHOD_CALL                                             !0, 'standard_function'
          4        INIT_STATIC_METHOD_CALL                                      'NamespaceOne%5COther', 'static_function'
          5        DO_FCALL                                          0  $4      
          6        SEND_VAR_NO_REF_EX                                           $4
          7        DO_FCALL                                          0          
    7     8      > RETURN                                                       null

End of function test

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

End of function standard_function

End of class NamespaceOne\Test.

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

End of function static_function

End of class NamespaceTwo\Other.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
128.77 ms | 482 KiB | 8 Q