3v4l.org

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

Class A:
Function __callstatic:
Finding entry points
Branch analysis from position: 0
Jump found. (Code = 62) Position 1 = -2
filename:       /in/B2SAq
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_STATIC_METHOD_CALL                                  'test'
         5        SEND_VAR_EX                                              !0
         6        SEND_VAR_EX                                              !1
         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
Jump found. (Code = 62) Position 1 = -2
filename:       /in/B2SAq
function name:  test
number of ops:  5
compiled vars:  !0 = $n, !1 = $a
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   6     0  E >   RECV                                             !0      
         1        RECV                                             !1      
         2        ECHO                                                     'test'
         3      > RETURN                                                   !1
         4*     > RETURN                                                   null

End of function test

End of class A.

Generated using Vulcan Logic Dumper, using php 7.3.0