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('//scale[@gender="*" or @gender="m"][@age="*" or @age="39-59"]/d[@scid="hi"][@raw="10"]/@t') as $t) { echo $t; }

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.60.0130.00916.88
8.3.50.0100.00622.23
8.3.40.0210.00019.31
8.3.30.0140.00019.34
8.3.20.0080.00020.72
8.3.10.0050.00324.03
8.3.00.0040.00421.05
8.2.180.0110.00416.88
8.2.170.0070.00722.96
8.2.160.0120.00321.02
8.2.150.0030.00524.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00021.41
8.2.110.0060.00321.39
8.2.100.0000.01118.28
8.2.90.0040.00418.28
8.2.80.0000.00818.13
8.2.70.0000.00818.00
8.2.60.0030.00918.18
8.2.50.0000.00818.07
8.2.40.0030.00520.32
8.2.30.0030.00618.61
8.2.20.0040.00418.09
8.2.10.0040.00418.44
8.2.00.0000.00818.09
8.1.280.0040.01425.92
8.1.270.0080.00024.29
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0090.00022.77
8.1.230.0080.00421.41
8.1.220.0040.00418.02
8.1.210.0030.00619.26
8.1.200.0090.00517.71
8.1.190.0000.00817.72
8.1.180.0040.00418.10
8.1.170.0030.00619.07
8.1.160.0040.00422.24
8.1.150.0040.00418.93
8.1.140.0040.00417.69
8.1.130.0030.00318.26
8.1.120.0040.00417.96
8.1.110.0040.00417.76
8.1.100.0000.00817.68
8.1.90.0000.00717.69
8.1.80.0040.00417.88
8.1.70.0040.00417.69
8.1.60.0040.00817.87
8.1.50.0040.00417.98
8.1.40.0090.00017.74
8.1.30.0090.00017.87
8.1.20.0030.00518.16
8.1.10.0000.00817.72
8.1.00.0000.00917.84
8.0.300.0040.00420.24
8.0.290.0070.00017.25
8.0.280.0000.00718.81
8.0.270.0000.00717.65
8.0.260.0040.00417.68
8.0.250.0000.00717.49
8.0.240.0000.00817.45
8.0.230.0020.00517.18
8.0.220.0000.00817.20
8.0.210.0000.00817.41
8.0.200.0000.00717.49
8.0.190.0000.00817.52
8.0.180.0000.00817.32
8.0.170.0050.00317.43
8.0.160.0030.00317.21
8.0.150.0000.00717.16
8.0.140.0040.00417.13
8.0.130.0030.00313.84
8.0.120.0000.00817.41
8.0.110.0040.00417.24
8.0.100.0040.00417.32
8.0.90.0030.00617.31
8.0.80.0120.00917.47
8.0.70.0030.00617.25
8.0.60.0040.00417.20
8.0.50.0040.00417.34
8.0.30.0100.00817.52
8.0.20.0110.00917.41
8.0.10.0040.00417.36
8.0.00.0100.00717.28
7.4.330.0050.00015.38
7.4.320.0000.00616.90
7.4.300.0030.00316.94
7.4.290.0000.00716.95
7.4.280.0060.00316.87
7.4.270.0070.00016.96
7.4.260.0100.00016.97
7.4.250.0040.00416.93
7.4.240.0040.00416.96
7.4.230.0070.00016.98
7.4.220.0100.01716.95
7.4.210.0000.01416.86
7.4.200.0030.00316.84
7.4.160.0060.01016.78
7.4.150.0100.01017.40
7.4.140.0060.01217.86
7.4.130.0080.01016.90
7.4.120.0140.00617.13
7.4.110.0090.00917.01
7.4.100.0100.00716.90
7.4.90.0070.01016.93
7.4.80.0150.00919.39
7.4.70.0120.00616.98
7.4.60.0110.00616.91
7.4.50.0000.01016.73
7.4.40.0090.01116.70
7.4.30.0100.01316.81
7.4.00.0090.00314.95
7.3.330.0020.00213.58
7.3.320.0070.00013.48
7.3.310.0050.00316.45
7.3.300.0000.00716.65
7.3.290.0180.00416.70
7.3.280.0090.00616.63
7.3.270.0160.00417.40
7.3.260.0110.00816.84
7.3.250.0110.00516.75
7.3.240.0100.00716.57
7.3.230.0070.01116.52
7.3.210.0060.01616.95
7.3.200.0070.01019.39
7.3.190.0150.00616.77
7.3.180.0120.00316.91
7.3.170.0130.00316.63
7.3.160.0040.01116.94
7.3.120.0040.01415.04
7.2.330.0070.01017.09
7.2.320.0060.01317.09
7.2.310.0130.00317.10
7.2.300.0140.00717.01
7.2.290.0110.01216.84
7.2.00.0030.01019.55
7.1.100.0060.00618.06
7.1.70.0000.00717.19
7.1.60.0030.00917.36
7.1.50.0000.02317.07
7.1.00.0000.07722.53
7.0.200.0070.01016.79
7.0.140.0030.07322.32
7.0.70.0070.04021.95
7.0.60.0000.04021.94
7.0.50.0030.04022.31
7.0.40.0030.04020.41
7.0.30.0030.04320.28
7.0.20.0070.04020.27
7.0.10.0070.04020.36
7.0.00.0070.08020.33
5.6.280.0030.07321.00
5.6.220.0000.04020.81
5.6.210.0030.04020.80
5.6.200.0070.06721.23
5.6.190.0070.03721.20
5.6.180.0030.04021.25
5.6.170.0030.06021.16
5.6.160.0100.07021.28
5.6.150.0070.05321.21
5.6.140.0070.05021.13
5.6.130.0000.04721.27
5.6.120.0000.04721.24
5.6.110.0030.05021.16
5.6.100.0070.05721.21
5.6.90.0030.08321.36
5.6.80.0100.06020.66
5.6.70.0030.04020.59
5.6.60.0030.08720.58
5.6.50.0030.08020.59
5.6.40.0170.07320.57
5.6.30.0000.07720.54
5.6.20.0170.07320.72
5.6.10.0070.08020.56
5.6.00.0030.07720.56
5.5.360.0030.04020.75
5.5.350.0000.04020.65
5.5.340.0000.04020.96
5.5.330.0070.03720.96
5.5.320.0000.04321.02
5.5.310.0130.03720.95
5.5.300.0000.06021.04
5.5.290.0000.04320.96
5.5.280.0000.06321.09
5.5.270.0000.04721.10
5.5.260.0030.04321.05
5.5.250.0070.04720.81
5.5.240.0000.08320.33
5.5.230.0070.08020.45
5.5.220.0030.06020.44
5.5.210.0070.07020.25
5.5.200.0100.05720.39
5.5.190.0030.06720.28
5.5.180.0100.08020.38
5.5.160.0000.06320.48
5.5.150.0030.08020.31
5.5.140.0070.07720.46
5.5.130.0030.04320.31
5.5.120.0030.07720.18
5.5.110.0030.08020.21
5.5.100.0100.06720.20
5.5.90.0030.07020.28
5.5.80.0070.07020.37
5.5.70.0100.07720.28
5.5.60.0030.07720.22
5.5.50.0100.07320.23
5.5.40.0100.05020.20
5.5.30.0030.08020.38
5.5.20.0070.07320.30
5.5.10.0100.07320.26
5.5.00.0070.08020.20
5.4.450.0000.04319.61
5.4.440.0000.04719.54
5.4.430.0030.07319.46
5.4.420.0000.06319.61
5.4.410.0000.08019.45
5.4.400.0030.07319.29
5.4.390.0030.08019.24
5.4.380.0030.05019.30
5.4.370.0070.07719.29
5.4.360.0030.08019.14
5.4.350.0070.08319.34
5.4.340.0130.07319.28
5.4.320.0070.08019.32
5.4.310.0070.06719.04
5.4.300.0000.05719.23
5.4.290.0100.06719.29
5.4.280.0000.06719.32
5.4.270.0000.07719.28
5.4.260.0030.07719.31
5.4.250.0030.08019.27
5.4.240.0030.07319.15
5.4.230.0070.07719.30
5.4.220.0100.06719.30
5.4.210.0000.04319.13
5.4.200.0070.06019.30
5.4.190.0170.04319.14
5.4.180.0000.08719.27
5.4.170.0030.04319.26
5.4.160.0000.07019.11
5.4.150.0030.04719.13
5.4.140.0030.07016.69
5.4.130.0070.07016.69
5.4.120.0030.05716.60
5.4.110.0000.08316.52
5.4.100.0030.07716.53
5.4.90.0000.07716.63
5.4.80.0070.04316.65
5.4.70.0070.06016.55
5.4.60.0030.07716.71
5.4.50.0000.06016.60
5.4.40.0030.07716.60
5.4.30.0030.07316.63
5.4.20.0030.05016.63
5.4.10.0030.07316.45
5.4.00.0070.06716.02
5.3.290.0030.08014.83
5.3.280.0070.07014.75
5.3.270.0000.06714.87
5.3.260.0070.04314.72
5.3.250.0100.06014.85
5.3.240.0030.07714.79
5.3.230.0030.04314.71
5.3.220.0000.06714.73
5.3.210.0030.07314.77
5.3.200.0000.05014.61
5.3.190.0030.07714.81
5.3.180.0000.06014.73
5.3.170.0070.06714.81
5.3.160.0030.07714.61
5.3.150.0000.08014.68
5.3.140.0070.07714.63
5.3.130.0070.07714.74
5.3.120.0000.06714.81
5.3.110.0030.08014.73
5.3.100.0100.06714.21
5.3.90.0070.06714.09
5.3.80.0070.05314.13
5.3.70.0030.06314.13
5.3.60.0030.06714.24
5.3.50.0030.07314.21
5.3.40.0000.07714.16
5.3.30.0070.07314.07
5.3.20.0030.03313.81
5.3.10.0070.07013.82
5.3.00.0030.04713.75
5.2.170.0000.05712.23
5.2.160.0000.06312.23
5.2.150.0030.06312.23
5.2.140.0000.07012.23
5.2.130.0070.03312.23
5.2.120.0100.05712.23
5.2.110.0070.05312.23
5.2.100.0000.03312.23
5.2.90.0030.06312.23
5.2.80.0070.04712.23
5.2.70.0030.06012.23
5.2.60.0030.06712.23
5.2.50.0030.05712.23
5.2.40.0070.05712.23
5.2.30.0000.05312.23
5.2.20.0030.06712.23
5.2.10.0030.03712.23
5.2.00.0030.04312.23
5.1.60.0000.02712.23
5.1.50.0000.05712.23
5.1.40.0000.05712.23
5.1.30.0100.04712.23
5.1.20.0070.05712.23
5.1.10.0070.05312.23
5.1.00.0030.05712.23
5.0.50.0100.04012.23
5.0.40.0030.04012.23
5.0.30.0030.06012.23
5.0.20.0000.04312.23
5.0.10.0000.05012.23
5.0.00.0000.05012.23
4.4.90.0000.03312.23
4.4.80.0000.03712.23
4.4.70.0000.03012.23
4.4.60.0000.03012.23
4.4.50.0030.02712.23
4.4.40.0030.05312.23
4.4.30.0000.04012.23
4.4.20.0000.03012.23
4.4.10.0070.03012.23
4.4.00.0000.04312.23
4.3.110.0000.04012.23
4.3.100.0030.03712.23
4.3.90.0000.03712.23
4.3.80.0030.05012.23
4.3.70.0000.03712.23
4.3.60.0000.03712.23
4.3.50.0070.02712.23
4.3.40.0000.04312.23
4.3.30.0000.03312.23
4.3.20.0000.04012.23
4.3.10.0030.02012.23
4.3.00.0000.02012.23

preferences:
47.19 ms | 401 KiB | 5 Q