3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = <<<XML <?xml version="1.0" encoding="utf-8"?> <Results> <Letters Type="RBPN SD"><![CDATA[ <html xmlns="http://www.w3.org/1999/xhtml"><table border="0" ... </table></td></tr></table></html>]]> </Letters> <Letters2 Type="Adverse"><![CDATA[ <html xmlns="http://www.w3.org/1999/xhtml"><table border="0" ... </table></td></tr></table></html>]]> </Letters2> </Results> XML; $xml = simplexml_load_string($str); $results = $xml->xpath('//Letters[@Type="RBPN SD"]'); $content = trim((string) $results[0]); var_dump($content); // file_put_contents("$base_path\\BPP.html", $content);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/shjZR
function name:  (null)
number of ops:  19
compiled vars:  !0 = $str, !1 = $xml, !2 = $results, !3 = $content
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3C%3Fxml+version%3D%221.0%22+encoding%3D%22utf-8%22%3F%3E%0A%3CResults%3E%0A%09%3CLetters+Type%3D%22RBPN+SD%22%3E%3C%21%5BCDATA%5B%0A%09%09%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%3Ctable++border%3D%220%22%0A%09%09%09...%0A%09%09%3C%2Ftable%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3C%2Fhtml%3E%5D%5D%3E%0A%09%3C%2FLetters%3E%0A%09%3CLetters2+Type%3D%22Adverse%22%3E%3C%21%5BCDATA%5B%0A%09%09%3Chtml+xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxhtml%22%3E%3Ctable++border%3D%220%22%0A%09%09%09...%0A%09%09%3C%2Ftable%3E%3C%2Ftd%3E%3C%2Ftr%3E%3C%2Ftable%3E%3C%2Fhtml%3E%5D%5D%3E%0A%09%3C%2FLetters2%3E%0A%3C%2FResults%3E'
   19     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $5      
          4        ASSIGN                                                   !1, $5
   20     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2FLetters%5B%40Type%3D%22RBPN+SD%22%5D'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
   22     9        INIT_FCALL                                               'trim'
         10        FETCH_DIM_R                                      ~9      !2, 0
         11        CAST                                          6  ~10     ~9
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                         $11     
         14        ASSIGN                                                   !3, $11
   24    15        INIT_FCALL                                               'var_dump'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
   25    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.22 ms | 1012 KiB | 16 Q