3v4l.org

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

Class a:
Function ping:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3LhMl
function name:  ping
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   ECHO                                                     'test'
    7     1      > RETURN                                                   null

End of function ping

End of class a.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.26 ms | 1386 KiB | 15 Q