3v4l.org

run code in 300+ PHP versions simultaneously
<?php class foo { function bar($arg, $arg2) { echo __METHOD__, " got $arg and $arg2\n"; } } $foo = new foo; call_user_func_array(array($foo, "bar"), array("three", "four"));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ntm1D
function name:  (null)
number of ops:  10
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   NEW                                              $1      'foo'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
    9     3        INIT_ARRAY                                       ~4      !0
          4        ADD_ARRAY_ELEMENT                                ~4      'bar'
          5        INIT_USER_CALL                                0          'call_user_func_array', ~4
          6        SEND_ARRAY                                               <array>
          7        CHECK_UNDEF_ARGS                                         
          8        DO_FCALL                                      0          
          9      > RETURN                                                   1

Class foo:
Function bar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ntm1D
function name:  bar
number of ops:  10
compiled vars:  !0 = $arg, !1 = $arg2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    4     2        ECHO                                                     'foo%3A%3Abar'
          3        ROPE_INIT                                     5  ~3      '+got+'
          4        ROPE_ADD                                      1  ~3      ~3, !0
          5        ROPE_ADD                                      2  ~3      ~3, '+and+'
          6        ROPE_ADD                                      3  ~3      ~3, !1
          7        ROPE_END                                      4  ~2      ~3, '%0A'
          8        ECHO                                                     ~2
    5     9      > RETURN                                                   null

End of function bar

End of class foo.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.17 ms | 1393 KiB | 13 Q