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"; } }

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
8.5.10.0100.00820.69
8.5.00.0160.00520.36
8.4.160.0140.00824.21
8.4.150.0020.00014.05
8.4.140.0100.01117.85
8.4.130.0120.00917.96
8.4.120.0030.00521.04
8.4.110.0130.00822.75
8.4.100.0110.01018.14
8.4.90.0080.01319.01
8.4.80.0150.01118.21
8.4.70.0160.00618.07
8.4.60.0090.00119.30
8.4.50.0140.00620.80
8.4.40.0100.01019.82
8.4.30.0170.00321.09
8.4.20.0030.01720.07
8.4.10.0030.00620.86
8.3.280.0150.00818.80
8.3.270.0120.00817.06
8.3.260.0080.00117.14
8.3.250.0100.00719.37
8.3.240.0070.00316.85
8.3.230.0140.00516.86
8.3.220.0120.00617.79
8.3.210.0130.00716.99
8.3.200.0050.00416.97
8.3.190.0100.00317.72
8.3.180.0120.00718.99
8.3.170.0030.00517.60
8.3.160.0110.00816.88
8.3.150.0090.00919.27
8.3.140.0070.01117.43
8.3.130.0070.00417.02
8.3.120.0130.00719.35
8.3.110.0030.00620.94
8.3.100.0060.00324.06
8.3.90.0030.00626.77
8.3.80.0030.00616.75
8.3.70.0110.01117.00
8.3.60.0040.01217.00
8.3.50.0070.00720.50
8.3.40.0090.01219.54
8.3.30.0080.00819.57
8.3.20.0030.00624.18
8.3.10.0050.00324.66
8.3.00.0040.00426.16
8.2.290.0100.00820.71
8.2.280.0050.00418.47
8.2.270.0090.00917.60
8.2.260.0090.00016.96
8.2.250.0150.00317.02
8.2.240.0030.00517.52
8.2.230.0060.00322.58
8.2.220.0030.00637.54
8.2.210.0000.00826.77
8.2.200.0090.00017.13
8.2.190.0100.01016.88
8.2.180.0150.00625.92
8.2.170.0120.00619.46
8.2.160.0030.01022.96
8.2.150.0000.00825.66
8.2.140.0000.00724.66
8.2.130.0040.00426.16
8.2.120.0060.00321.13
8.2.110.0030.00622.52
8.2.100.0000.01218.22
8.2.90.0000.00819.73
8.2.80.0080.00018.18
8.2.70.0120.00017.88
8.2.60.0040.00418.30
8.2.50.0000.00818.07
8.2.40.0040.00418.72
8.2.30.0000.00818.73
8.2.20.0040.00420.81
8.2.10.0070.00018.45
8.2.00.0050.00219.71
8.1.330.0120.00722.36
8.1.320.0080.01116.45
8.1.310.0080.00017.21
8.1.300.0090.00018.92
8.1.290.0070.00330.84
8.1.280.0090.00625.92
8.1.270.0080.00024.29
8.1.260.0030.00626.35
8.1.250.0050.00328.09
8.1.240.0060.00324.50
8.1.230.0040.00719.59
8.1.220.0080.00018.02
8.1.210.0060.00318.77
8.1.200.0090.00317.49
8.1.190.0060.00317.73
8.1.180.0050.00318.10
8.1.170.0060.00319.02
8.1.160.0040.00419.25
8.1.150.0040.00418.98
8.1.140.0080.00017.83
8.1.130.0080.00019.31
8.1.120.0030.00717.96
8.1.110.0030.00517.92
8.1.100.0000.00717.98
8.1.90.0040.00417.94
8.1.80.0050.00217.93
8.1.70.0050.00217.86
8.1.60.0000.00818.07
8.1.50.0080.00017.83
8.1.40.0190.00817.75
8.1.30.0150.00918.08
8.1.20.0230.00017.85
8.1.10.0210.00417.77
8.1.00.0160.00817.86
8.0.300.0020.00518.77
8.0.290.0040.00417.68
8.0.280.0000.00718.90
8.0.270.0000.00717.22
8.0.260.0030.00318.83
8.0.250.0030.00317.30
8.0.240.0080.00017.53
8.0.230.0070.00017.52
8.0.220.0030.00517.25
8.0.210.0070.00017.32
8.0.200.0030.00317.51
8.0.190.0000.00717.54
8.0.180.0000.00717.42
8.0.170.0140.00717.44
8.0.160.0150.00617.23
8.0.150.0150.00517.28
8.0.140.0190.00017.14
8.0.130.0160.00317.13
8.0.120.0210.00017.18
8.0.110.0160.00617.39
8.0.100.0140.00517.47
8.0.90.0190.00217.45
8.0.80.0190.00017.28
8.0.70.0210.00017.16
8.0.60.0130.00817.25
8.0.50.0140.00717.16
8.0.30.0150.00417.09
8.0.20.0190.00217.43
8.0.10.0110.00917.56
7.4.330.0060.00015.55
7.4.320.0030.00317.05
7.4.300.0030.00316.73
7.4.290.0080.00416.84
7.4.280.0210.00416.95
7.4.270.0120.00617.08
7.4.260.0120.00616.99
7.4.250.0130.00917.06
7.4.240.0100.00716.91
7.4.230.0210.00016.75
7.4.220.0170.00416.95
7.4.210.0190.00316.87
7.4.200.0060.01217.07
7.4.190.0130.00716.86
7.4.180.0140.00316.94
7.4.160.0120.00416.78
7.4.150.0040.00916.59
7.4.140.0120.00416.93
7.4.130.0160.00016.86
7.4.120.0130.00316.57
7.4.110.0110.00316.61
7.4.100.0160.00317.06
7.4.90.0110.00416.96
7.4.80.0080.00416.71
7.4.70.0090.00316.77
7.4.60.0070.00716.87
7.4.50.0030.01016.46
7.4.40.0180.00016.78
7.4.30.0140.00316.46
7.4.20.0160.00016.70
7.4.10.0070.00716.89
7.4.00.0040.00816.88

preferences:
35.96 ms | 403 KiB | 5 Q