3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Hello { function World() { $output = "Chandra"; 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/V8OeJ
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/V8OeJ
function name:  World
number of ops:  3
compiled vars:  !0 = $output
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ASSIGN                                                   !0, 'Chandra'
    7     1      > RETURN                                                   !0
    8     2*     > RETURN                                                   null

End of function world

End of class Hello.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.46 ms | 1386 KiB | 15 Q