3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** Use this as server **/ class MyAPI { function hello() { return var_export(getallheaders(), true); } } $options=array('uri'=>'http://testing.dev'); $server = new SoapServer(NULL,$options); $server->setClass('MyAPI'); $server->handle();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XljKJ
function name:  (null)
number of ops:  12
compiled vars:  !0 = $options, !1 = $server
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   ASSIGN                                                   !0, <array>
   14     1        NEW                                              $3      'SoapServer'
          2        SEND_VAL_EX                                              null
          3        SEND_VAR_EX                                              !0
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $3
   15     6        INIT_METHOD_CALL                                         !1, 'setClass'
          7        SEND_VAL_EX                                              'MyAPI'
          8        DO_FCALL                                      0          
   16     9        INIT_METHOD_CALL                                         !1, 'handle'
         10        DO_FCALL                                      0          
         11      > RETURN                                                   1

Class MyAPI:
Function hello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/XljKJ
function name:  hello
number of ops:  8
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   INIT_FCALL                                               'var_export'
          1        INIT_FCALL_BY_NAME                                       'getallheaders'
          2        DO_FCALL                                      0  $0      
          3        SEND_VAR                                                 $0
          4        SEND_VAL                                                 <true>
          5        DO_ICALL                                         $1      
          6      > RETURN                                                   $1
    9     7*     > RETURN                                                   null

End of function hello

End of class MyAPI.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
146.28 ms | 1395 KiB | 15 Q