3v4l.org

run code in 300+ PHP versions simultaneously
<?php class SoapHandler { public function test() { $result = eval("this is a parse error"); if ($result === false) { return "good"; } } } $server = new SoapServer(null, array('uri' => 'http://some.uri')); $server->setClass('SoapHandler'); $HTTP_RAW_POST_DATA = <<<EOF <?xml version="1.0" encoding="ISO-8859-1"?> <SOAP-ENV:Envelope SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:si="http://soapinterop.org/xsd"> <SOAP-ENV:Body> <ns1:test xmlns:ns1="http://testuri.org" /> </SOAP-ENV:Body> </SOAP-ENV:Envelope> EOF; $server->handle($HTTP_RAW_POST_DATA);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hYb70
function name:  (null)
number of ops:  13
compiled vars:  !0 = $server, !1 = $HTTP_RAW_POST_DATA
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   NEW                                              $2      'SoapServer'
          1        SEND_VAL_EX                                              null
          2        SEND_VAL_EX                                              <array>
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
   14     5        INIT_METHOD_CALL                                         !0, 'setClass'
          6        SEND_VAL_EX                                              'SoapHandler'
          7        DO_FCALL                                      0          
   16     8        ASSIGN                                                   !1, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22ISO-8859-1%22%3F%3E%0A%3CSOAP-ENV%3AEnvelope%0A++SOAP-ENV%3AencodingStyle%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fencoding%2F%22%0A++xmlns%3ASOAP-ENV%3D%22http%3A%2F%2Fschemas.xmlsoap.org%2Fsoap%2Fenvelope%2F%22%0A++xmlns%3Axsd%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%0A++xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22%0A++xmlns%3Asi%3D%22http%3A%2F%2Fsoapinterop.org%2Fxsd%22%3E%0A++%3CSOAP-ENV%3ABody%3E%0A++++%3Cns1%3Atest+xmlns%3Ans1%3D%22http%3A%2F%2Ftesturi.org%22+%2F%3E%0A++%3C%2FSOAP-ENV%3ABody%3E%0A%3C%2FSOAP-ENV%3AEnvelope%3E'
   30     9        INIT_METHOD_CALL                                         !0, 'handle'
         10        SEND_VAR_EX                                              !1
         11        DO_FCALL                                      0          
         12      > RETURN                                                   1

Class SoapHandler:
Function test:
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 4, Position 2 = 5
Branch analysis from position: 4
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 5
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/hYb70
function name:  test
number of ops:  6
compiled vars:  !0 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   INCLUDE_OR_EVAL                                  $1      'this+is+a+parse+error', EVAL
          1        ASSIGN                                                   !0, $1
    7     2        TYPE_CHECK                                    4          !0
          3      > JMPZ                                                     ~3, ->5
    8     4    > > RETURN                                                   'good'
   10     5    > > RETURN                                                   null

End of function test

End of class SoapHandler.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.85 ms | 1395 KiB | 13 Q