3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str=<<<XML <scales> <di val="Atlantic"> <t tid="1610612752" ta="NYK" tn="Knicks" tc="New York" see="2" cli="1" elim="0" str="W 1" l10="8-2" dr="10-6" cr="37-15" l="28" w="54" hr="31-10" ar="23-18" gb="12"/> <t tid="1610612751" ta="BKN" tn="Nets" tc="Brooklyn" see="4" cli="1" elim="0" str="W 2" l10="7-3" dr="11-5" cr="36-16" l="33" w="49" hr="26-15" ar="23-18" gb="17"/> <t tid="1610612738" ta="BOS" tn="Celtics" tc="Boston" see="7" cli="1" elim="0" str="L 1" l10="4-6" dr="7-9" cr="27-24" l="40" w="41" hr="27-13" ar="14-27" gb="24.5"/> <t tid="1610612755" ta="PHI" tn="76ers" tc="Philadelphia" see="9" cli="0" elim="1" str="W 1" l10="5-5" dr="7-9" cr="22-30" l="48" w="34" hr="23-18" ar="11-30" gb="32"/> <t tid="1610612761" ta="TOR" tn="Raptors" tc="Toronto" see="10" cli="0" elim="1" str="W 5" l10="7-3" dr="5-11" cr="22-30" l="48" w="34" hr="21-20" ar="13-28" gb="32"/> </di> <di val="Central"> <t tid="1610612754" ta="IND" tn="Pacers" tc="Indiana" see="3" cli="1" elim="0" str="L 3" l10="5-5" dr="13-3" cr="31-20" l="32" w="49" hr="30-11" ar="19-21" gb="16.5"/> <t tid="1610612741" ta="CHI" tn="Bulls" tc="Chicago" see="5" cli="1" elim="0" str="W 2" l10="5-5" dr="9-7" cr="34-18" l="37" w="45" hr="24-17" ar="21-20" gb="21"/> <t tid="1610612749" ta="MIL" tn="Bucks" tc="Milwaukee" see="8" cli="1" elim="0" str="W 1" l10="3-7" dr="7-9" cr="24-28" l="44" w="38" hr="21-20" ar="17-24" gb="28"/> <t tid="1610612765" ta="DET" tn="Pistons" tc="Detroit" see="11" cli="0" elim="1" str="L 1" l10="5-5" dr="8-8" cr="25-27" l="53" w="29" hr="18-23" ar="11-30" gb="37"/> <t tid="1610612739" ta="CLE" tn="Cavaliers" tc="Cleveland" see="13" cli="0" elim="1" str="L 6" l10="2-8" dr="3-13" cr="18-34" l="58" w="24" hr="14-27" ar="10-31" gb="42"/> </di> </scales> XML; $xml=simplexml_load_string($str); foreach($xml->xpath('//di/t[@ta="CHI"]/@t') as $t) { echo $t; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
2 jumps found. (Code = 78) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 9
Branch analysis from position: 9
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/fVIuW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $str, !1 = $xml, !2 = $t
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cscales%3E%0A++++%3Cdi+val%3D%22Atlantic%22%3E%0A%3Ct+tid%3D%221610612752%22+ta%3D%22NYK%22+tn%3D%22Knicks%22+tc%3D%22New+York%22+see%3D%222%22+cli%3D%221%22+elim%3D%220%22+str%3D%22W+1%22+l10%3D%228-2%22+dr%3D%2210-6%22+cr%3D%2237-15%22+l%3D%2228%22+w%3D%2254%22+hr%3D%2231-10%22+ar%3D%2223-18%22+gb%3D%2212%22%2F%3E%0A%3Ct+tid%3D%221610612751%22+ta%3D%22BKN%22+tn%3D%22Nets%22+tc%3D%22Brooklyn%22+see%3D%224%22+cli%3D%221%22+elim%3D%220%22+str%3D%22W+2%22+l10%3D%227-3%22+dr%3D%2211-5%22+cr%3D%2236-16%22+l%3D%2233%22+w%3D%2249%22+hr%3D%2226-15%22+ar%3D%2223-18%22+gb%3D%2217%22%2F%3E%0A%3Ct+tid%3D%221610612738%22+ta%3D%22BOS%22+tn%3D%22Celtics%22+tc%3D%22Boston%22+see%3D%227%22+cli%3D%221%22+elim%3D%220%22+str%3D%22L+1%22+l10%3D%224-6%22+dr%3D%227-9%22+cr%3D%2227-24%22+l%3D%2240%22+w%3D%2241%22+hr%3D%2227-13%22+ar%3D%2214-27%22+gb%3D%2224.5%22%2F%3E%0A%3Ct+tid%3D%221610612755%22+ta%3D%22PHI%22+tn%3D%2276ers%22+tc%3D%22Philadelphia%22+see%3D%229%22+cli%3D%220%22+elim%3D%221%22+str%3D%22W+1%22+l10%3D%225-5%22+dr%3D%227-9%22+cr%3D%2222-30%22+l%3D%2248%22+w%3D%2234%22+hr%3D%2223-18%22+ar%3D%2211-30%22+gb%3D%2232%22%2F%3E%0A%3Ct+tid%3D%221610612761%22+ta%3D%22TOR%22+tn%3D%22Raptors%22+tc%3D%22Toronto%22+see%3D%2210%22+cli%3D%220%22+elim%3D%221%22+str%3D%22W+5%22+l10%3D%227-3%22+dr%3D%225-11%22+cr%3D%2222-30%22+l%3D%2248%22+w%3D%2234%22+hr%3D%2221-20%22+ar%3D%2213-28%22+gb%3D%2232%22%2F%3E%0A%3C%2Fdi%3E%0A%3Cdi+val%3D%22Central%22%3E%0A%3Ct+tid%3D%221610612754%22+ta%3D%22IND%22+tn%3D%22Pacers%22+tc%3D%22Indiana%22+see%3D%223%22+cli%3D%221%22+elim%3D%220%22+str%3D%22L+3%22+l10%3D%225-5%22+dr%3D%2213-3%22+cr%3D%2231-20%22+l%3D%2232%22+w%3D%2249%22+hr%3D%2230-11%22+ar%3D%2219-21%22+gb%3D%2216.5%22%2F%3E%0A%3Ct+tid%3D%221610612741%22+ta%3D%22CHI%22+tn%3D%22Bulls%22+tc%3D%22Chicago%22+see%3D%225%22+cli%3D%221%22+elim%3D%220%22+str%3D%22W+2%22+l10%3D%225-5%22+dr%3D%229-7%22+cr%3D%2234-18%22+l%3D%2237%22+w%3D%2245%22+hr%3D%2224-17%22+ar%3D%2221-20%22+gb%3D%2221%22%2F%3E%0A%3Ct+tid%3D%221610612749%22+ta%3D%22MIL%22+tn%3D%22Bucks%22+tc%3D%22Milwaukee%22+see%3D%228%22+cli%3D%221%22+elim%3D%220%22+str%3D%22W+1%22+l10%3D%223-7%22+dr%3D%227-9%22+cr%3D%2224-28%22+l%3D%2244%22+w%3D%2238%22+hr%3D%2221-20%22+ar%3D%2217-24%22+gb%3D%2228%22%2F%3E%0A%3Ct+tid%3D%221610612765%22+ta%3D%22DET%22+tn%3D%22Pistons%22+tc%3D%22Detroit%22+see%3D%2211%22+cli%3D%220%22+elim%3D%221%22+str%3D%22L+1%22+l10%3D%225-5%22+dr%3D%228-8%22+cr%3D%2225-27%22+l%3D%2253%22+w%3D%2229%22+hr%3D%2218-23%22+ar%3D%2211-30%22+gb%3D%2237%22%2F%3E%0A%3Ct+tid%3D%221610612739%22+ta%3D%22CLE%22+tn%3D%22Cavaliers%22+tc%3D%22Cleveland%22+see%3D%2213%22+cli%3D%220%22+elim%3D%221%22+str%3D%22L+6%22+l10%3D%222-8%22+dr%3D%223-13%22+cr%3D%2218-34%22+l%3D%2258%22+w%3D%2224%22+hr%3D%2214-27%22+ar%3D%2210-31%22+gb%3D%2242%22%2F%3E%0A%3C%2Fdi%3E%0A%3C%2Fscales%3E%0A++++'
   21     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $4      
          4        ASSIGN                                                   !1, $4
   22     5        INIT_METHOD_CALL                                         !1, 'xpath'
          6        SEND_VAL_EX                                              '%2F%2Fdi%2Ft%5B%40ta%3D%22CHI%22%5D%2F%40t'
          7        DO_FCALL                                      0  $6      
          8      > FE_RESET_R                                       $7      $6, ->12
          9    > > FE_FETCH_R                                               $7, !2, ->12
   24    10    >   ECHO                                                     !2
   22    11      > JMP                                                      ->9
         12    >   FE_FREE                                                  $7
   25    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.04 ms | 1400 KiB | 15 Q