3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<'XML' <row> <rowid>1</rowid> <currencysymbol>&#8364;</currencysymbol> <totalrecords>2145</totalrecords> <affcustomid>11159_4498302</affcustomid> <period>7/1/2014</period> <impressions>0</impressions> <clicks>1</clicks> <clickthroughratio>0</clickthroughratio> <downloads>1</downloads> <downloadratio>1</downloadratio> <newaccountratio>1</newaccountratio> <newdepositingacc>1</newdepositingacc> <newaccounts>1</newaccounts> <firstdepositcount>1</firstdepositcount> <activeaccounts>1</activeaccounts> <activedays>1</activedays> <newpurchases>12.4948</newpurchases> <purchaccountcount>1</purchaccountcount> <wageraccountcount>1</wageraccountcount> <avgactivedays>1</avgactivedays> <netrevenueplayer>11.8701</netrevenueplayer> <Deposits>12.4948</Deposits> <Bonus>0</Bonus> <NetRevenue>11.8701</NetRevenue> <TotalBetsHands>4</TotalBetsHands> <Product1Bets>4</Product1Bets> <Product1NetRevenue>11.8701</Product1NetRevenue> <Product1Commission>30</Product1Commission> <Commission>0</Commission> <CPACommission>30</CPACommission> </row> XML; $dom = new DOMDocument(); $dom->loadXml($xml); $xpath = new DOMXpath($dom); var_dump( $xpath->evaluate('string(//row[CPACommission > 0]/affcustomid)') );
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bsYHW
function name:  (null)
number of ops:  18
compiled vars:  !0 = $xml, !1 = $dom, !2 = $xpath
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Crow%3E%0A%3Crowid%3E1%3C%2Frowid%3E%0A%3Ccurrencysymbol%3E%26%238364%3B%3C%2Fcurrencysymbol%3E%0A%3Ctotalrecords%3E2145%3C%2Ftotalrecords%3E%0A%3Caffcustomid%3E11159_4498302%3C%2Faffcustomid%3E%0A%3Cperiod%3E7%2F1%2F2014%3C%2Fperiod%3E%0A%3Cimpressions%3E0%3C%2Fimpressions%3E%0A%3Cclicks%3E1%3C%2Fclicks%3E%0A%3Cclickthroughratio%3E0%3C%2Fclickthroughratio%3E%0A%3Cdownloads%3E1%3C%2Fdownloads%3E%0A%3Cdownloadratio%3E1%3C%2Fdownloadratio%3E%0A%3Cnewaccountratio%3E1%3C%2Fnewaccountratio%3E%0A%3Cnewdepositingacc%3E1%3C%2Fnewdepositingacc%3E%0A%3Cnewaccounts%3E1%3C%2Fnewaccounts%3E%0A%3Cfirstdepositcount%3E1%3C%2Ffirstdepositcount%3E%0A%3Cactiveaccounts%3E1%3C%2Factiveaccounts%3E%0A%3Cactivedays%3E1%3C%2Factivedays%3E%0A%3Cnewpurchases%3E12.4948%3C%2Fnewpurchases%3E%0A%3Cpurchaccountcount%3E1%3C%2Fpurchaccountcount%3E%0A%3Cwageraccountcount%3E1%3C%2Fwageraccountcount%3E%0A%3Cavgactivedays%3E1%3C%2Favgactivedays%3E%0A%3Cnetrevenueplayer%3E11.8701%3C%2Fnetrevenueplayer%3E%0A%3CDeposits%3E12.4948%3C%2FDeposits%3E%0A%3CBonus%3E0%3C%2FBonus%3E%0A%3CNetRevenue%3E11.8701%3C%2FNetRevenue%3E%0A%3CTotalBetsHands%3E4%3C%2FTotalBetsHands%3E%0A%3CProduct1Bets%3E4%3C%2FProduct1Bets%3E%0A%3CProduct1NetRevenue%3E11.8701%3C%2FProduct1NetRevenue%3E%0A%3CProduct1Commission%3E30%3C%2FProduct1Commission%3E%0A%3CCommission%3E0%3C%2FCommission%3E%0A%3CCPACommission%3E30%3C%2FCPACommission%3E%0A%3C%2Frow%3E'
   38     1        NEW                                              $4      'DOMDocument'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !1, $4
   39     4        INIT_METHOD_CALL                                         !1, 'loadXml'
          5        SEND_VAR_EX                                              !0
          6        DO_FCALL                                      0          
   40     7        NEW                                              $8      'DOMXpath'
          8        SEND_VAR_EX                                              !1
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !2, $8
   42    11        INIT_FCALL                                               'var_dump'
   43    12        INIT_METHOD_CALL                                         !2, 'evaluate'
         13        SEND_VAL_EX                                              'string%28%2F%2Frow%5BCPACommission+%3E+0%5D%2Faffcustomid%29'
         14        DO_FCALL                                      0  $11     
         15        SEND_VAR                                                 $11
         16        DO_ICALL                                                 
   44    17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.89 ms | 1396 KiB | 15 Q