3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { function World($arg) { $output = "Chandra {$arg}"; return $output; } } $c = new Hello(); var_dump(call_user_func(array($c,"World"),array("Okay")));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sZAU8
function name:  (null)
number of ops:  12
compiled vars:  !0 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   NEW                                              $1      'Hello'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   12     3        INIT_FCALL                                               'var_dump'
          4        INIT_ARRAY                                       ~4      !0
          5        ADD_ARRAY_ELEMENT                                ~4      'World'
          6        INIT_USER_CALL                                1          'call_user_func', ~4
          7        SEND_USER                                                <array>
          8        DO_FCALL                                      0  $5      
          9        SEND_VAR                                                 $5
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class Hello:
Function world:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/sZAU8
function name:  World
number of ops:  6
compiled vars:  !0 = $arg, !1 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
    6     1        NOP                                                      
          2        FAST_CONCAT                                      ~2      'Chandra+', !0
          3        ASSIGN                                                   !1, ~2
    7     4      > RETURN                                                   !1
    8     5*     > RETURN                                                   null

End of function world

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.37 ms | 1395 KiB | 15 Q