3v4l.org

run code in 300+ PHP versions simultaneously
<?php ini_set('display_errors', 1); error_reporting(E_ALL); /** Be sure you've both PEAR installed on your web server and that all the required PEAR modules have been installed */ if(!extension_loaded("soap")){ dl("php_soap.dll"); } ini_set("consultar.wsdl_cache_enabled","0"); $server = new SoapServer("consultar.wsdl"); function consultar(){ //aqui vamos a llamar a mysql /* $servername = "localhost"; $username = "dragonfly"; $password = "jorangamo_15"; // Create connection $conn = new mysqli($servername, $username, $password); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } echo "Connected successfully";*/ return "hola"; } $server->AddFunction("consultar"); $server->handle(); echo "si"; ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/CuhDb
function name:  (null)
number of ops:  30
compiled vars:  !0 = $server
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   INIT_FCALL                                               'ini_set'
          1        SEND_VAL                                                 'display_errors'
          2        SEND_VAL                                                 1
          3        DO_ICALL                                                 
    5     4        INIT_FCALL                                               'error_reporting'
          5        SEND_VAL                                                 32767
          6        DO_ICALL                                                 
   10     7        INIT_FCALL                                               'extension_loaded'
          8        SEND_VAL                                                 'soap'
          9        DO_ICALL                                         $3      
         10        BOOL_NOT                                         ~4      $3
         11      > JMPZ                                                     ~4, ->15
   11    12    >   INIT_FCALL                                               'dl'
         13        SEND_VAL                                                 'php_soap.dll'
         14        DO_ICALL                                                 
   14    15    >   INIT_FCALL                                               'ini_set'
         16        SEND_VAL                                                 'consultar.wsdl_cache_enabled'
         17        SEND_VAL                                                 '0'
         18        DO_ICALL                                                 
   15    19        NEW                                              $7      'SoapServer'
         20        SEND_VAL_EX                                              'consultar.wsdl'
         21        DO_FCALL                                      0          
         22        ASSIGN                                                   !0, $7
   37    23        INIT_METHOD_CALL                                         !0, 'AddFunction'
         24        SEND_VAL_EX                                              'consultar'
         25        DO_FCALL                                      0          
   38    26        INIT_METHOD_CALL                                         !0, 'handle'
         27        DO_FCALL                                      0          
   40    28        ECHO                                                     'si'
   47    29      > RETURN                                                   1

Function consultar:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/CuhDb
function name:  consultar
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   34     0  E > > RETURN                                                   'hola'
   35     1*     > RETURN                                                   null

End of function consultar

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.3 ms | 1396 KiB | 21 Q