3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { static function b() { return 'soy b static'; } function a() { return 'soy a'; } } $z=(new a)->a(); echo $z; die; $a=call_user_func(['a', 'b']); $b=call_user_func_array(['a', 'b'],[]); $c=call_user_func('a' .'::b');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 79) Position 1 = -2
filename:       /in/s8slG
function name:  (null)
number of ops:  19
compiled vars:  !0 = $z, !1 = $a, !2 = $b, !3 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   NEW                                              $4      'a'
          1        DO_FCALL                                      0          
          2        INIT_METHOD_CALL                                         $4, 'a'
          3        DO_FCALL                                      0  $6      
          4        ASSIGN                                                   !0, $6
   21     5        ECHO                                                     !0
   25     6      > EXIT                                                     
   29     7*       INIT_USER_CALL                                0          'call_user_func', <array>
          8*       DO_FCALL                                      0  $8      
          9*       ASSIGN                                                   !1, $8
   30    10*       INIT_USER_CALL                                0          'call_user_func_array', <array>
         11*       SEND_ARRAY                                               <array>
         12*       CHECK_UNDEF_ARGS                                         
         13*       DO_FCALL                                      0  $10     
         14*       ASSIGN                                                   !2, $10
   31    15*       INIT_USER_CALL                                0          'call_user_func', 'a%3A%3Ab'
         16*       DO_FCALL                                      0  $12     
         17*       ASSIGN                                                   !3, $12
         18*     > RETURN                                                   1

Class A:
Function b:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/s8slG
function name:  b
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E > > RETURN                                                   'soy+b+static'
    7     1*     > RETURN                                                   null

End of function b

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

End of function a

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.4 ms | 1395 KiB | 13 Q