3v4l.org

run code in 300+ PHP versions simultaneously
<?php $server = new \SoapServer(NULL, array('uri' => 'http://localhost')); $server->handle(); class test { public function sayHello(Blah $one, $two) { return $one; } } $test = new test; var_dump($test->sayHello('one', 'two'));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HF2o
function name:  (null)
number of ops:  18
compiled vars:  !0 = $server, !1 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'SoapServer'
          1        SEND_VAL_EX                                              null
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        INIT_METHOD_CALL                                         !0, 'handle'
          6        DO_FCALL                                      0          
   14     7        NEW                                              $6      'test'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
   15    10        INIT_FCALL                                               'var_dump'
         11        INIT_METHOD_CALL                                         !1, 'sayHello'
         12        SEND_VAL_EX                                              'one'
         13        SEND_VAL_EX                                              'two'
         14        DO_FCALL                                      0  $9      
         15        SEND_VAR                                                 $9
         16        DO_ICALL                                                 
         17      > RETURN                                                   1

Class test:
Function sayhello:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/4HF2o
function name:  sayHello
number of ops:  4
compiled vars:  !0 = $one, !1 = $two
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    8     0  E >   RECV                                             !0      
          1        RECV                                             !1      
   10     2      > RETURN                                                   !0
   11     3*     > RETURN                                                   null

End of function sayhello

End of class test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.46 ms | 1395 KiB | 15 Q