3v4l.org

run code in 300+ PHP versions simultaneously
<?php libxml_use_internal_errors(true); $html = file_get_contents("http://www.sportsevents365.com/event/?q=eq,224264"); $doc = new \DOMDocument(); if($doc->loadHTML($html)) { $xpath = new \DOMXPath($doc); echo $xpath->evaluate("string(//span[./preceding-sibling::span[@itemprop='currency']])"); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 14, Position 2 = 22
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 22
filename:       /in/r44rI
function name:  (null)
number of ops:  23
compiled vars:  !0 = $html, !1 = $doc, !2 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'libxml_use_internal_errors'
          1        SEND_VAL                                                 <true>
          2        DO_ICALL                                                 
    4     3        INIT_FCALL                                               'file_get_contents'
          4        SEND_VAL                                                 'http%3A%2F%2Fwww.sportsevents365.com%2Fevent%2F%3Fq%3Deq%2C224264'
          5        DO_ICALL                                         $4      
          6        ASSIGN                                                   !0, $4
    6     7        NEW                                              $6      'DOMDocument'
          8        DO_FCALL                                      0          
          9        ASSIGN                                                   !1, $6
    8    10        INIT_METHOD_CALL                                         !1, 'loadHTML'
         11        SEND_VAR_EX                                              !0
         12        DO_FCALL                                      0  $9      
         13      > JMPZ                                                     $9, ->22
   10    14    >   NEW                                              $10     'DOMXPath'
         15        SEND_VAR_EX                                              !1
         16        DO_FCALL                                      0          
         17        ASSIGN                                                   !2, $10
   12    18        INIT_METHOD_CALL                                         !2, 'evaluate'
         19        SEND_VAL_EX                                              'string%28%2F%2Fspan%5B.%2Fpreceding-sibling%3A%3Aspan%5B%40itemprop%3D%27currency%27%5D%5D%29'
         20        DO_FCALL                                      0  $13     
         21        ECHO                                                     $13
   13    22    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
181.62 ms | 1395 KiB | 17 Q