3v4l.org

run code in 300+ PHP versions simultaneously
<?php $response = <<<XML <ns3:calculateResponse xmlns="http://geomodel.eu/schema/common/geo" xmlns:ns2="http://geomodel.eu/schema/common/pv" xmlns:ns3="http://geomodel.eu/schema/ws/pvplanner"> <ns3:site lat="48.61259" lng="20.827079"> <terrain elevation="246" tilt="10.0" azimuth="176"/> <horizon/> <ns2:geometry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:GeometryFixedOneAngle" tilt="10.0" azimuth="175"/> <ns2:system installedPower="1.0" installationType="ROOF_MOUNTED" availability="99.0"> <ns2:module type="CSI"/> <ns2:inverter> <ns2:efficiency xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:EfficiencyConstant" percent="97.5"/> </ns2:inverter> <ns2:losses dc="5.5" ac="1.5"/> </ns2:system> </ns3:site> <ns3:irradiation> <ns3:reference> <ns3:Ghm monthly="31.0 49.4 97.2 126.6 159.0 166.3 165.4 152.6 101.8 65.6 33.7 23.8" yearly="1172.4"/> <ns3:Ghd monthly="1.00 1.76 3.14 4.22 5.13 5.54 5.34 4.92 3.39 2.12 1.12 0.77" yearly="3.21"/> <ns3:Dhd monthly="0.57 0.91 1.47 2.06 2.50 2.75 2.62 2.27 1.67 1.11 0.67 0.46" yearly="1.59"/> <ns3:Td monthly="-2.5 -1.1 3.0 8.5 13.5 17.1 19.8 19.5 13.7 8.6 3.1 -1.8" yearly="8.5"/> <ns3:Tmin monthly="-3.9 -3.0 0.2 4.1 7.9 11.2 13.8 14.0 9.2 5.6 1.6 -2.8"/> <ns3:Tmax monthly="0.2 2.1 6.9 13.7 19.1 22.6 25.5 25.7 19.4 13.2 6.0 0.6"/> <ns3:invar monthly="-1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0 -1.0" yearly="-1.0"/> <ns3:Rh monthly="90.0 90.0 80.0 73.0 72.0 67.0 63.0 61.0 69.0 78.0 86.0 87.0" yearly="76.0"/> <ns3:Pwat monthly="9.0 9.0 10.0 13.0 18.0 22.0 25.0 24.0 19.0 15.0 12.0 9.0" yearly="15.0"/> </ns3:reference> <ns3:inplane> <ns3:Gim monthly="39.9 59.7 110.5 136.4 165.8 171.2 171.5 162.6 112.6 76.8 41.6 30.9" yearly="1279.5"/> <ns3:Gid monthly="1.28 2.13 3.56 4.54 5.34 5.71 5.53 5.24 3.75 2.48 1.39 0.99" yearly="3.50"/> <ns3:Did monthly="0.62 0.98 1.57 2.15 2.57 2.82 2.69 2.37 1.76 1.19 0.72 0.50" yearly="1.67"/> <ns3:Rid monthly="0.00 0.00 0.00 0.00 0.00 0.01 0.01 0.00 0.00 0.00 0.00 0.00" yearly="0.00"/> <ns3:ShLoss monthly="0.5 0.4 0.3 0.4 0.4 0.5 0.5 0.3 0.4 0.4 0.5 0.5" yearly="0.4"/> </ns3:inplane> <ns3:comparison> <ns3:horizontal yearlySum="1172.0" percentOpt="84.2"/> <ns3:optimum yearlySum="1393.0" percentOpt="100.0"/> <ns3:tracker2x yearlySum="1751.0" percentOpt="125.7"/> <ns3:selected yearlySum="1279.0" percentOpt="91.9"/> </ns3:comparison> <ns3:optimum fixed="37.0"/> </ns3:irradiation> <ns3:calculation> <ns3:output> <ns3:Esm monthly="33.0 50.6 93.1 111.2 131.7 133.6 132.0 125.6 89.6 62.4 33.8 24.9" yearly="1021.5"/> <ns3:Esd monthly="1.06 1.81 3.00 3.71 4.25 4.45 4.26 4.05 2.99 2.01 1.13 0.80" yearly="2.80"/> <ns3:Etm monthly="33.0 50.6 93.1 111.2 131.7 133.6 132.0 125.6 89.6 62.4 33.8 24.9" yearly="1021.5"/> <ns3:Eshare monthly="3.2 5.0 9.1 10.9 12.9 13.1 12.9 12.3 8.8 6.1 3.3 2.4" yearly="100.0"/> <ns3:PR monthly="82.4 84.4 84.0 81.2 79.1 77.6 76.6 77.0 79.3 80.9 80.9 80.3" yearly="79.5"/> </ns3:output> <ns3:losses> <ns3:global output="1285" PRp="100.0" PRc="100.0"/> <ns3:terrain output="1279" lossAbs="-5" lossRel="-0.42" PRp="99.6" PRc="99.6"/> <ns3:angular output="1231" lossAbs="-49" lossRel="-3.81" PRp="96.2" PRc="95.8"/> <ns3:conversion output="1137" lossAbs="-94" lossRel="-7.63" PRp="92.4" PRc="88.5"/> <ns3:dcLoss output="1074" lossAbs="-63" lossRel="-5.5" PRp="94.5" PRc="83.6"/> <ns3:inverter output="1047" lossAbs="-27" lossRel="-2.5" PRp="97.5" PRc="81.5"/> <ns3:acLoss output="1032" lossAbs="-16" lossRel="-1.5" PRp="98.5" PRc="80.3"/> <ns3:availability output="1021" lossAbs="-10" lossRel="-1.0" PRp="99.0" PRc="79.5"/> <ns3:total output="1021" lossAbs="-264" lossRel="-20.51" PRc="79.5"/> </ns3:losses> </ns3:calculation> <ns3:summary><![CDATA[PV system: 1.0 kWp, crystalline silicon, fixed roof, azim. 175&deg; (south), inclination 10&deg;]]></ns3:summary> </ns3:calculateResponse> XML; $xml = simplexml_load_string($response); $xml->registerXPathNamespace('ns3', 'http://geomodel.eu/schema/ws/pvplanner'); foreach ($xml->xpath('//ns3:irradiation/ns3:inplane/ns3:Gim') as $gim) { foreach($gim->attributes() as $a => $b) { echo $a,'="',$b,"\"\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 26
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 26
Branch analysis from position: 14
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 24
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 24
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 24
Branch analysis from position: 26
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
filename:       /in/HLO40
function name:  (null)
number of ops:  28
compiled vars:  !0 = $response, !1 = $xml, !2 = $gim, !3 = $b, !4 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%3Cns3%3AcalculateResponse+xmlns%3D%22http%3A%2F%2Fgeomodel.eu%2Fschema%2Fcommon%2Fgeo%22+xmlns%3Ans2%3D%22http%3A%2F%2Fgeomodel.eu%2Fschema%2Fcommon%2Fpv%22+xmlns%3Ans3%3D%22http%3A%2F%2Fgeomodel.eu%2Fschema%2Fws%2Fpvplanner%22%3E%0A%3Cns3%3Asite+lat%3D%2248.61259%22+lng%3D%2220.827079%22%3E%0A%3Cterrain+elevation%3D%22246%22+tilt%3D%2210.0%22+azimuth%3D%22176%22%2F%3E%0A%3Chorizon%2F%3E%0A%3Cns2%3Ageometry+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xsi%3Atype%3D%22ns2%3AGeometryFixedOneAngle%22+tilt%3D%2210.0%22+azimuth%3D%22175%22%2F%3E%0A%3Cns2%3Asystem+installedPower%3D%221.0%22+installationType%3D%22ROOF_MOUNTED%22+availability%3D%2299.0%22%3E%0A%3Cns2%3Amodule+type%3D%22CSI%22%2F%3E%0A%3Cns2%3Ainverter%3E%0A%3Cns2%3Aefficiency+xmlns%3Axsi%3D%22http%3A%2F%2Fwww.w3.org%2F2001%2FXMLSchema-instance%22+xsi%3Atype%3D%22ns2%3AEfficiencyConstant%22+percent%3D%2297.5%22%2F%3E%0A%3C%2Fns2%3Ainverter%3E%0A%3Cns2%3Alosses+dc%3D%225.5%22+ac%3D%221.5%22%2F%3E%0A%3C%2Fns2%3Asystem%3E%0A%3C%2Fns3%3Asite%3E%0A%3Cns3%3Airradiation%3E%0A%3Cns3%3Areference%3E%0A%3Cns3%3AGhm+monthly%3D%2231.0+49.4+97.2+126.6+159.0+166.3+165.4+152.6+101.8+65.6+33.7+23.8%22+yearly%3D%221172.4%22%2F%3E%0A%3Cns3%3AGhd+monthly%3D%221.00+1.76+3.14+4.22+5.13+5.54+5.34+4.92+3.39+2.12+1.12+0.77%22+yearly%3D%223.21%22%2F%3E%0A%3Cns3%3ADhd+monthly%3D%220.57+0.91+1.47+2.06+2.50+2.75+2.62+2.27+1.67+1.11+0.67+0.46%22+yearly%3D%221.59%22%2F%3E%0A%3Cns3%3ATd+monthly%3D%22-2.5+-1.1+3.0+8.5+13.5+17.1+19.8+19.5+13.7+8.6+3.1+-1.8%22+yearly%3D%228.5%22%2F%3E%0A%3Cns3%3ATmin+monthly%3D%22-3.9+-3.0+0.2+4.1+7.9+11.2+13.8+14.0+9.2+5.6+1.6+-2.8%22%2F%3E%0A%3Cns3%3ATmax+monthly%3D%220.2+2.1+6.9+13.7+19.1+22.6+25.5+25.7+19.4+13.2+6.0+0.6%22%2F%3E%0A%3Cns3%3Ainvar+monthly%3D%22-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0+-1.0%22+yearly%3D%22-1.0%22%2F%3E%0A%3Cns3%3ARh+monthly%3D%2290.0+90.0+80.0+73.0+72.0+67.0+63.0+61.0+69.0+78.0+86.0+87.0%22+yearly%3D%2276.0%22%2F%3E%0A%3Cns3%3APwat+monthly%3D%229.0+9.0+10.0+13.0+18.0+22.0+25.0+24.0+19.0+15.0+12.0+9.0%22+yearly%3D%2215.0%22%2F%3E%0A%3C%2Fns3%3Areference%3E%0A%3Cns3%3Ainplane%3E%0A%3Cns3%3AGim+monthly%3D%2239.9+59.7+110.5+136.4+165.8+171.2+171.5+162.6+112.6+76.8+41.6+30.9%22+yearly%3D%221279.5%22%2F%3E%0A%3Cns3%3AGid+monthly%3D%221.28+2.13+3.56+4.54+5.34+5.71+5.53+5.24+3.75+2.48+1.39+0.99%22+yearly%3D%223.50%22%2F%3E%0A%3Cns3%3ADid+monthly%3D%220.62+0.98+1.57+2.15+2.57+2.82+2.69+2.37+1.76+1.19+0.72+0.50%22+yearly%3D%221.67%22%2F%3E%0A%3Cns3%3ARid+monthly%3D%220.00+0.00+0.00+0.00+0.00+0.01+0.01+0.00+0.00+0.00+0.00+0.00%22+yearly%3D%220.00%22%2F%3E%0A%3Cns3%3AShLoss+monthly%3D%220.5+0.4+0.3+0.4+0.4+0.5+0.5+0.3+0.4+0.4+0.5+0.5%22+yearly%3D%220.4%22%2F%3E%0A%3C%2Fns3%3Ainplane%3E%0A%3Cns3%3Acomparison%3E%0A%3Cns3%3Ahorizontal+yearlySum%3D%221172.0%22+percentOpt%3D%2284.2%22%2F%3E%0A%3Cns3%3Aoptimum+yearlySum%3D%221393.0%22+percentOpt%3D%22100.0%22%2F%3E%0A%3Cns3%3Atracker2x+yearlySum%3D%221751.0%22+percentOpt%3D%22125.7%22%2F%3E%0A%3Cns3%3Aselected+yearlySum%3D%221279.0%22+percentOpt%3D%2291.9%22%2F%3E%0A%3C%2Fns3%3Acomparison%3E%0A%3Cns3%3Aoptimum+fixed%3D%2237.0%22%2F%3E%0A%3C%2Fns3%3Airradiation%3E%0A%3Cns3%3Acalculation%3E%0A%3Cns3%3Aoutput%3E%0A%3Cns3%3AEsm+monthly%3D%2233.0+50.6+93.1+111.2+131.7+133.6+132.0+125.6+89.6+62.4+33.8+24.9%22+yearly%3D%221021.5%22%2F%3E%0A%3Cns3%3AEsd+monthly%3D%221.06+1.81+3.00+3.71+4.25+4.45+4.26+4.05+2.99+2.01+1.13+0.80%22+yearly%3D%222.80%22%2F%3E%0A%3Cns3%3AEtm+monthly%3D%2233.0+50.6+93.1+111.2+131.7+133.6+132.0+125.6+89.6+62.4+33.8+24.9%22+yearly%3D%221021.5%22%2F%3E%0A%3Cns3%3AEshare+monthly%3D%223.2+5.0+9.1+10.9+12.9+13.1+12.9+12.3+8.8+6.1+3.3+2.4%22+yearly%3D%22100.0%22%2F%3E%0A%3Cns3%3APR+monthly%3D%2282.4+84.4+84.0+81.2+79.1+77.6+76.6+77.0+79.3+80.9+80.9+80.3%22+yearly%3D%2279.5%22%2F%3E%0A%3C%2Fns3%3Aoutput%3E%0A%3Cns3%3Alosses%3E%0A%3Cns3%3Aglobal+output%3D%221285%22+PRp%3D%22100.0%22+PRc%3D%22100.0%22%2F%3E%0A%3Cns3%3Aterrain+output%3D%221279%22+lossAbs%3D%22-5%22+lossRel%3D%22-0.42%22+PRp%3D%2299.6%22+PRc%3D%2299.6%22%2F%3E%0A%3Cns3%3Aangular+output%3D%221231%22+lossAbs%3D%22-49%22+lossRel%3D%22-3.81%22+PRp%3D%2296.2%22+PRc%3D%2295.8%22%2F%3E%0A%3Cns3%3Aconversion+output%3D%221137%22+lossAbs%3D%22-94%22+lossRel%3D%22-7.63%22+PRp%3D%2292.4%22+PRc%3D%2288.5%22%2F%3E%0A%3Cns3%3AdcLoss+output%3D%221074%22+lossAbs%3D%22-63%22+lossRel%3D%22-5.5%22+PRp%3D%2294.5%22+PRc%3D%2283.6%22%2F%3E%0A%3Cns3%3Ainverter+output%3D%221047%22+lossAbs%3D%22-27%22+lossRel%3D%22-2.5%22+PRp%3D%2297.5%22+PRc%3D%2281.5%22%2F%3E%0A%3Cns3%3AacLoss+output%3D%221032%22+lossAbs%3D%22-16%22+lossRel%3D%22-1.5%22+PRp%3D%2298.5%22+PRc%3D%2280.3%22%2F%3E%0A%3Cns3%3Aavailability+output%3D%221021%22+lossAbs%3D%22-10%22+lossRel%3D%22-1.0%22+PRp%3D%2299.0%22+PRc%3D%2279.5%22%2F%3E%0A%3Cns3%3Atotal+output%3D%221021%22+lossAbs%3D%22-264%22+lossRel%3D%22-20.51%22+PRc%3D%2279.5%22%2F%3E%0A%3C%2Fns3%3Alosses%3E%0A%3C%2Fns3%3Acalculation%3E%0A%3Cns3%3Asummary%3E%3C%21%5BCDATA%5BPV+system%3A+1.0+kWp%2C+crystalline+silicon%2C+fixed+roof%2C+azim.+175%26deg%3B+%28south%29%2C+inclination+10%26deg%3B%5D%5D%3E%3C%2Fns3%3Asummary%3E%0A%3C%2Fns3%3AcalculateResponse%3E'
   68     1        INIT_FCALL                                               'simplexml_load_string'
          2        SEND_VAR                                                 !0
          3        DO_ICALL                                         $6      
          4        ASSIGN                                                   !1, $6
   69     5        INIT_METHOD_CALL                                         !1, 'registerXPathNamespace'
          6        SEND_VAL_EX                                              'ns3'
          7        SEND_VAL_EX                                              'http%3A%2F%2Fgeomodel.eu%2Fschema%2Fws%2Fpvplanner'
          8        DO_FCALL                                      0          
   70     9        INIT_METHOD_CALL                                         !1, 'xpath'
         10        SEND_VAL_EX                                              '%2F%2Fns3%3Airradiation%2Fns3%3Ainplane%2Fns3%3AGim'
         11        DO_FCALL                                      0  $9      
         12      > FE_RESET_R                                       $10     $9, ->26
         13    > > FE_FETCH_R                                               $10, !2, ->26
   71    14    >   INIT_METHOD_CALL                                         !2, 'attributes'
         15        DO_FCALL                                      0  $11     
         16      > FE_RESET_R                                       $12     $11, ->24
         17    > > FE_FETCH_R                                       ~13     $12, !3, ->24
         18    >   ASSIGN                                                   !4, ~13
   72    19        ECHO                                                     !4
         20        ECHO                                                     '%3D%22'
         21        ECHO                                                     !3
         22        ECHO                                                     '%22%0A'
   71    23      > JMP                                                      ->17
         24    >   FE_FREE                                                  $12
   70    25      > JMP                                                      ->13
         26    >   FE_FREE                                                  $10
   74    27      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.25 ms | 1019 KiB | 14 Q