3v4l.org

run code in 300+ PHP versions simultaneously
<?php $example_response = '<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><SubmitVendorLeadResponse xmlns="http://www.quotewizard.com/"><SubmitVendorLeadResult>&lt;?xml version="1.0" encoding="utf-16"?&gt; &lt;QWXMLResponse Version="1.0"&gt; &lt;DateTime&gt;6/5/2014 6:08:45 AM&lt;/DateTime&gt; &lt;Contract_ID&gt;EB49169C-780F-4CA9-B25B-4DA2673D5636&lt;/Contract_ID&gt; &lt;Quote_ID&gt;0ad90b17-dc48-4170-9da1-f8c2cfc171cd&lt;/Quote_ID&gt; &lt;Status&gt;Success&lt;/Status&gt; &lt;Payout&gt;10.20&lt;/Payout&gt; &lt;/QWXMLResponse&gt;</SubmitVendorLeadResult></SubmitVendorLeadResponse></soap:Body></soap:Envelope>'; preg_match("/.*&lt;Quote_ID&gt;(?P<leadID>[0-9a-zA-Z\-]*).*Status&gt;(?P<status>[a-zA-Z]{7}).*Payout&gt;(?P<price>[0-9\.]*)&lt;.*/" , $example_response, $test_response); var_dump($test_response);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/YtQAJ
function name:  (null)
number of ops:  10
compiled vars:  !0 = $example_response, !1 = $test_response
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%3Csoap%3AEnvelope+xmlns%3Asoap%3D%22http%3A%2F%2Fwww.w3.org%2F2003%2F05%2Fsoap-envelope%22+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xmlns%3Axsd%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema%22%3E%3Csoap%3ABody%3E%3CSubmitVendorLeadResponse+xmlns%3D%22http%3A%2F%2Fwww.quotewizard.com%2F%22%3E%3CSubmitVendorLeadResult%3E%26lt%3B%3Fxml+version%3D%221.0%22+encoding%3D%22utf-16%22%3F%26gt%3B%0A%26lt%3BQWXMLResponse+Version%3D%221.0%22%26gt%3B%0A++++%26lt%3BDateTime%26gt%3B6%2F5%2F2014+6%3A08%3A45+AM%26lt%3B%2FDateTime%26gt%3B%0A++++%26lt%3BContract_ID%26gt%3BEB49169C-780F-4CA9-B25B-4DA2673D5636%26lt%3B%2FContract_ID%26gt%3B%0A++++%26lt%3BQuote_ID%26gt%3B0ad90b17-dc48-4170-9da1-f8c2cfc171cd%26lt%3B%2FQuote_ID%26gt%3B%0A++++%26lt%3BStatus%26gt%3BSuccess%26lt%3B%2FStatus%26gt%3B%0A++++%26lt%3BPayout%26gt%3B10.20%26lt%3B%2FPayout%26gt%3B%0A%26lt%3B%2FQWXMLResponse%26gt%3B%3C%2FSubmitVendorLeadResult%3E%3C%2FSubmitVendorLeadResponse%3E%3C%2Fsoap%3ABody%3E%3C%2Fsoap%3AEnvelope%3E'
   10     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%2F.%2A%26lt%3BQuote_ID%26gt%3B%28%3FP%3CleadID%3E%5B0-9a-zA-Z%5C-%5D%2A%29.%2AStatus%26gt%3B%28%3FP%3Cstatus%3E%5Ba-zA-Z%5D%7B7%7D%29.%2APayout%26gt%3B%28%3FP%3Cprice%3E%5B0-9%5C.%5D%2A%29%26lt%3B.%2A%2F'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
   11     6        INIT_FCALL                                               'var_dump'
          7        SEND_VAR                                                 !1
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
209.36 ms | 1395 KiB | 17 Q