3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A{ static function __callStatic( $n , $a ) { echo 'x:'.$n; return call_user_func_array( 'self::test' , $a); } static function test($a) { echo 'test' ; return $a; } } echo A::Z( 'Y' );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rMnCO
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   INIT_STATIC_METHOD_CALL                                  'A', 'Z'
          1        SEND_VAL_EX                                              'Y'
          2        DO_FCALL                                      0  $0      
          3        ECHO                                                     $0
          4      > RETURN                                                   1

Class A:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/rMnCO
function name:  __callStatic
number of ops:  10
compiled vars:  !0 = $n, !1 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        CONCAT                                           ~2      'x%3A', !0
          3        ECHO                                                     ~2
          4        INIT_USER_CALL                                0          'call_user_func_array', 'self%3A%3Atest'
          5        SEND_ARRAY                                               !1
          6        CHECK_UNDEF_ARGS                                         
          7        DO_FCALL                                      0  $3      
          8      > RETURN                                                   $3
          9*     > RETURN                                                   null

End of function __callstatic

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

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.24 ms | 1394 KiB | 13 Q