3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<test> <round round_id="21402" title="Final" start_date="2016-03-06" end_date="2016-03-06" scoringsystem="BO3" groups="0" ties="0" ordermethod="1" prize_money="6400" prize_currency="usd" last_updated="2016-03-06 12:32:41"> <match match_id="154374" official_start_date="2016-03-06" official_start_time="08:00:00" actual_start_date="" actual_start_time="" winner="B" score_A="1" score_B="2" status="Played" drawposition="1" person_A_id="" person_A_name="" person_A_country="" person_B_id="" person_B_name="" person_B_country="" double_A_id="15014" double_A_country="" person_A1_id="27475" person_A1_name="Liang Chen" person_A1_country="CHN" person_A2_id="29558" person_A2_name="Wang Yafan" person_A2_country="CHN" double_B_id="17263" double_B_country="" person_B1_id="27351" person_B1_name="V. Wongteanchai" person_B1_country="THA" person_B2_id="30339" person_B2_name="Yang Zhaoxuan" person_B2_country="CHN" last_updated="2016-03-06 12:32:41" time_unknown="no"> <matchstatistics> <double double_id="15014" name="Liang Chen / Wang Yafan"> <statistics aces="1" dbl_faults="3" first_srv_point_won="31" first_srv_point_total="46" sec_srv_point_won="7" sec_srv="21" break_point_won="6" break_point_total="8" service_games_played="10" first_ret_point_won="13" first_ret_point_total="42" sec_ret_point_won="11" sec_ret_point="19" break_ret_point_won="2" break_ret_total="6" return_games_played="10" total_service_points_won="38" total_service_points_total="67" total_return_points_won="24" total_return_points_total="61" total_points_won="62" total_points="128"/> </double> <double double_id="17263" name="V. Wongteanchai / Yang Zhaoxuan"> <statistics aces="1" dbl_faults="2" first_srv_point_won="29" first_srv_point_total="42" sec_srv_point_won="8" sec_srv="19" break_point_won="4" break_point_total="6" service_games_played="10" first_ret_point_won="15" first_ret_point_total="46" sec_ret_point_won="14" sec_ret_point="21" break_ret_point_won="2" break_ret_total="8" return_games_played="10" total_service_points_won="37" total_service_points_total="61" total_return_points_won="29" total_return_points_total="67" total_points_won="66" total_points="128"/> </double> </matchstatistics> <set set_id="352608" score_A="6" score_B="4" tiebreakscore_A="" tiebreakscore_B="" start_date="" start_time="" end_date="" end_time="" last_updated="2016-03-06 12:32:41"/> <set set_id="352609" score_A="4" score_B="6" tiebreakscore_A="" tiebreakscore_B="" start_date="" start_time="" end_date="" end_time="" last_updated="2016-03-06 12:32:41"/> <set set_id="352610" score_A="7" score_B="10" tiebreakscore_A="" tiebreakscore_B="" start_date="" start_time="" end_date="" end_time="" last_updated="2016-03-06 12:32:41"/> </match> </round></test>'; $matches = simplexml_load_string($xml); foreach ($matches->xpath('//round') as $roundData) { foreach ($roundData->match as $matchData) { foreach ( $matchData->matchstatistics->double as $double ) { echo (string) $double->statistics['first_srv_point_won'], " First Serve Points Won\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.3.70.0090.01216.99
8.3.60.0160.00018.81
8.3.50.0080.00922.17
8.3.40.0070.00719.21
8.3.30.0040.01119.04
8.3.20.0080.00020.71
8.3.10.0040.00421.04
8.3.00.0000.00820.96
8.2.190.0160.00616.88
8.2.180.0040.01116.96
8.2.170.0140.00722.96
8.2.160.0140.00719.62
8.2.150.0080.00024.18
8.2.140.0090.00924.66
8.2.130.0030.00519.86
8.2.120.0030.00626.16
8.2.110.0060.00319.82
8.2.100.0040.00818.25
8.2.90.0040.00419.77
8.2.80.0040.00418.00
8.2.70.0040.00417.86
8.2.60.0050.00318.29
8.2.50.0080.00018.13
8.2.40.0040.00422.68
8.2.30.0050.00320.04
8.2.20.0080.00018.11
8.2.10.0070.00018.54
8.2.00.0050.00218.48
8.1.280.0090.00625.92
8.1.270.0070.00024.66
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0090.00021.01
8.1.230.0090.00317.88
8.1.220.0040.00418.04
8.1.210.0030.00618.77
8.1.200.0030.00617.73
8.1.190.0000.00817.73
8.1.180.0050.00318.10
8.1.170.0030.00519.01
8.1.160.0070.00021.30
8.1.150.0000.00719.29
8.1.140.0030.00620.03
8.1.130.0070.00018.10
8.1.120.0040.00417.98
8.1.110.0040.00417.84
8.1.100.0000.00817.93
8.1.90.0040.00417.96
8.1.80.0020.00517.86
8.1.70.0000.00717.97
8.1.60.0000.00718.07
8.1.50.0030.00518.06
8.1.40.0030.00517.80
8.1.30.0000.00917.93
8.1.20.0030.00617.98
8.1.10.0040.00417.98
8.1.00.0030.00517.80
8.0.300.0050.00218.77
8.0.290.0000.00717.25
8.0.280.0000.00718.83
8.0.270.0000.00817.65
8.0.260.0030.00317.72
8.0.250.0030.00317.46
8.0.240.0030.00317.23
8.0.230.0070.00017.49
8.0.220.0080.00017.37
8.0.210.0040.00417.38
8.0.200.0030.00317.50
8.0.190.0050.00317.21
8.0.180.0040.00417.18
8.0.170.0040.00417.36
8.0.160.0020.00517.25
8.0.150.0030.00517.35
8.0.140.0000.00817.39
8.0.130.0050.00213.86
8.0.120.0050.00317.23
8.0.110.0000.00817.27
8.0.100.0000.00717.31
8.0.90.0000.00717.33
8.0.80.0090.00617.20
8.0.70.0080.00017.28
8.0.60.0030.00517.18
8.0.50.0000.00717.30
8.0.30.0110.00817.68
8.0.20.0140.00617.60
8.0.10.0030.00517.39
8.0.00.0110.01317.26
7.4.330.0030.00315.08
7.4.320.0030.00316.97
7.4.300.0000.00716.97
7.4.290.0000.00817.12
7.4.280.0000.00817.02
7.4.270.0030.00316.96
7.4.260.0020.00516.79
7.4.250.0000.00817.03
7.4.240.0080.00017.10
7.4.230.0030.00316.86
7.4.220.0050.01417.11
7.4.210.0090.00617.02
7.4.200.0000.00816.96
7.4.160.0090.00917.05
7.4.150.0120.00617.40
7.4.140.0090.01417.86
7.4.130.0080.01016.94
7.4.120.0080.01117.15
7.4.110.0120.00617.01
7.4.100.0100.01017.01
7.4.90.0070.01017.03
7.4.80.0070.01019.39
7.4.70.0090.00916.89
7.4.60.0080.00916.94
7.4.50.0030.00916.68
7.4.40.0180.00317.04
7.4.30.0030.01417.00
7.4.00.0070.00715.26
7.3.330.0060.00313.50
7.3.320.0000.00613.36
7.3.310.0070.00016.81
7.3.300.0020.00516.63
7.3.290.0000.00816.73
7.3.280.0060.01116.56
7.3.270.0110.00617.40
7.3.260.0120.00616.99
7.3.250.0110.00816.73
7.3.240.0110.01016.80
7.3.230.0150.00616.77
7.3.210.0070.01016.97
7.3.200.0060.01616.75
7.3.190.0110.00716.81
7.3.180.0090.01216.79
7.3.170.0000.02216.70
7.3.160.0120.00316.78
7.2.330.0210.00317.18
7.2.320.0120.00617.04
7.2.310.0160.00317.20
7.2.300.0070.01017.12
7.2.290.0110.00617.11
7.2.60.0030.00917.06
7.2.00.0030.00819.82
7.1.200.0040.00415.98
7.1.100.0040.01518.30
7.1.70.0030.00717.50
7.1.60.0100.01319.23
7.1.00.0100.07022.65
7.0.200.0040.00417.07
7.0.60.0170.08022.03
7.0.50.0070.07018.08
7.0.40.0400.05020.32
7.0.30.0170.06020.52
7.0.20.0100.07020.37
7.0.10.0200.06320.32
7.0.00.0230.05320.60
5.6.280.0070.07321.33
5.6.210.0170.07320.79
5.6.200.0030.07018.33
5.6.190.0170.05720.99
5.6.180.0130.06320.74
5.6.170.0330.05720.73
5.6.160.0130.06020.55
5.6.150.0270.07720.63
5.6.140.0230.07320.70
5.6.130.0130.05720.77
5.6.120.0130.06020.78
5.6.110.0100.06320.65
5.6.100.0370.05020.66
5.6.90.0730.05320.71
5.6.80.0670.07320.11
5.6.70.0870.06319.69
5.6.60.1000.05319.71
5.6.50.0870.06019.76
5.6.40.0770.05319.95
5.6.30.0870.05319.95
5.6.20.0830.06020.05
5.6.10.0870.05019.68
5.6.00.0830.05020.02
5.5.350.0270.07020.65
5.5.340.0070.07718.25
5.5.330.0100.05720.78
5.5.320.0230.05320.39
5.5.310.0270.05320.75
5.5.300.0230.05720.53
5.5.290.0300.06720.55
5.5.280.0170.06320.43
5.5.270.0170.05720.46
5.5.260.0730.05720.34
5.5.250.0930.06320.25
5.5.240.0730.05319.86
5.5.230.0800.06019.84
5.5.220.0770.05719.84
5.5.210.0800.06319.81
5.5.200.0770.06019.91
5.5.190.0800.06319.76
5.5.180.0800.06019.75
5.5.160.0770.05019.75
5.5.150.0770.05319.74
5.5.140.0630.06019.82
5.5.130.0800.05019.88
5.5.120.0730.05019.91
5.5.110.0770.06319.86
5.5.100.0630.06019.72
5.5.90.0630.06719.82
5.5.80.0770.06319.72
5.5.70.0630.06019.78
5.5.60.0700.05319.36
5.5.50.0600.06319.64
5.5.40.0670.06019.79
5.5.30.0730.04719.79
5.5.20.0730.06319.70
5.5.10.0730.05319.79
5.5.00.0830.06019.75

preferences:
47.65 ms | 401 KiB | 5 Q