3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public static function Foo($n ) { echo $n, " Sör\n"; } } $Foo = "Foo"; $A = "A"; A::Foo(1); A::$Foo(2); $A::Foo(3); $A::$Foo(4); call_user_func_array('A::Foo', array(5));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z7O2p
function name:  (null)
number of ops:  21
compiled vars:  !0 = $Foo, !1 = $A
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   ASSIGN                                                   !0, 'Foo'
    9     1        ASSIGN                                                   !1, 'A'
   11     2        INIT_STATIC_METHOD_CALL                                  'A', 'Foo'
          3        SEND_VAL                                                 1
          4        DO_FCALL                                      0          
   12     5        INIT_STATIC_METHOD_CALL                                  'A', !0
          6        SEND_VAL_EX                                              2
          7        DO_FCALL                                      0          
   14     8        FETCH_CLASS                                   0  $6      !1
          9        INIT_STATIC_METHOD_CALL                                  $6, 'Foo'
         10        SEND_VAL_EX                                              3
         11        DO_FCALL                                      0          
   15    12        FETCH_CLASS                                   0  $8      !1
         13        INIT_STATIC_METHOD_CALL                                  $8, !0
         14        SEND_VAL_EX                                              4
         15        DO_FCALL                                      0          
   18    16        INIT_USER_CALL                                0          'call_user_func_array', 'A%3A%3AFoo'
         17        SEND_ARRAY                                               <array>
         18        CHECK_UNDEF_ARGS                                         
         19        DO_FCALL                                      0          
         20      > RETURN                                                   1

Class A:
Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Z7O2p
function name:  Foo
number of ops:  4
compiled vars:  !0 = $n
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1        ECHO                                                     !0
          2        ECHO                                                     '+S%C3%B6r%0A'
          3      > RETURN                                                   null

End of function foo

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.74 ms | 1394 KiB | 13 Q