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('//di/t[@ta="CHI"]') 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.0070.01417.13
8.3.50.0130.00517.58
8.3.40.0080.00819.03
8.3.30.0130.00319.05
8.3.20.0040.00419.00
8.3.10.0030.00620.86
8.3.00.0050.00319.51
8.2.180.0180.00416.75
8.2.170.0060.00922.96
8.2.160.0110.00421.20
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0080.00026.16
8.2.120.0040.00419.22
8.2.110.0070.00321.36
8.2.100.0040.00818.34
8.2.90.0040.00419.59
8.2.80.0080.00017.97
8.2.70.0040.00418.13
8.2.60.0070.00318.17
8.2.50.0030.00618.10
8.2.40.0030.00518.65
8.2.30.0070.00018.38
8.2.20.0030.00619.82
8.2.10.0040.00418.14
8.2.00.0030.00618.24
8.1.280.0170.00325.92
8.1.270.0000.00724.66
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0040.00424.35
8.1.230.0030.01018.14
8.1.220.0040.00418.16
8.1.210.0080.00018.77
8.1.200.0090.00017.85
8.1.190.0080.00317.73
8.1.180.0040.00418.10
8.1.170.0040.00419.34
8.1.160.0040.00419.27
8.1.150.0040.00818.96
8.1.140.0000.00817.68
8.1.130.0030.00318.22
8.1.120.0040.00417.98
8.1.110.0000.00917.69
8.1.100.0000.00717.94
8.1.90.0080.00017.69
8.1.80.0030.00517.94
8.1.70.0000.00717.88
8.1.60.0030.00617.78
8.1.50.0000.00817.96
8.1.40.0050.00318.02
8.1.30.0000.00817.94
8.1.20.0040.00417.95
8.1.10.0060.00317.78
8.1.00.0030.00517.88
8.0.300.0000.00818.77
8.0.290.0040.00417.13
8.0.280.0040.00418.88
8.0.270.0080.00017.57
8.0.260.0000.00817.28
8.0.250.0030.00617.32
8.0.240.0070.00317.51
8.0.230.0000.00717.30
8.0.220.0000.00817.40
8.0.210.0050.00217.44
8.0.200.0070.00017.22
8.0.190.0000.00817.48
8.0.180.0040.00417.45
8.0.170.0000.00917.40
8.0.160.0040.00417.19
8.0.150.0080.00017.13
8.0.140.0030.00717.16
8.0.130.0000.00513.75
8.0.120.0040.00417.22
8.0.110.0080.00017.41
8.0.100.0080.00017.24
8.0.90.0000.00917.26
8.0.80.0030.01317.15
8.0.70.0040.00417.41
8.0.60.0080.00017.23
8.0.50.0040.00417.27
8.0.30.0070.01317.27
8.0.20.0080.01117.47
8.0.10.0050.00317.37
8.0.00.0100.00817.34
7.4.330.0060.00013.31
7.4.320.0040.00416.97
7.4.300.0000.00616.95
7.4.290.0000.00716.86
7.4.280.0060.00316.84
7.4.270.0000.00717.06
7.4.260.0060.00013.61
7.4.250.0030.00616.75
7.4.240.0030.00516.82
7.4.230.0000.00716.93
7.4.220.0120.00817.07
7.4.210.0080.00816.93
7.4.200.0000.00816.86
7.4.190.0040.00417.01
7.4.160.0070.01016.85
7.4.150.0160.00416.72
7.4.140.0200.02416.99
7.4.130.0090.00917.07
7.4.120.0030.01417.03
7.4.110.0100.00716.90
7.4.100.0130.00416.89
7.4.90.0100.01316.74
7.4.80.0090.01517.02
7.4.70.0090.00816.83
7.4.60.0090.01616.78
7.4.50.0040.00016.80
7.4.40.0040.01116.76
7.4.30.0070.01016.81
7.4.00.0040.01415.06
7.3.330.0000.00613.37
7.3.320.0030.00413.34
7.3.310.0050.00216.49
7.3.300.0040.00416.77
7.3.290.0080.00716.72
7.3.280.0100.01016.76
7.3.270.0100.00716.84
7.3.260.0140.00816.86
7.3.250.0130.00716.87
7.3.240.0060.01016.91
7.3.230.0080.00816.71
7.3.210.0180.00617.01
7.3.200.0130.00919.39
7.3.190.0050.01416.88
7.3.180.0120.00316.73
7.3.170.0140.00316.83
7.3.160.0100.00616.96
7.3.120.0060.00615.32
7.2.330.0080.01117.02
7.2.320.0100.00717.22
7.2.310.0090.01417.13
7.2.300.0120.01217.13
7.2.290.0100.01317.00
7.2.00.0030.01019.63
7.1.100.0000.01018.32
7.1.70.0110.00417.35
7.1.60.0030.01719.31
7.1.50.0070.00417.12
7.1.00.0030.03722.63
7.0.200.0150.00416.73
7.0.140.0100.06022.26
7.0.120.0000.03322.25
7.0.60.0030.07720.25
7.0.50.0170.07018.00
7.0.40.0100.08017.87
7.0.30.0030.08717.91
7.0.20.0130.07718.03
7.0.10.0130.07317.91
7.0.00.0030.07017.97
5.6.280.0030.07321.13
5.6.210.0070.07720.85
5.6.200.0030.04318.36
5.6.190.0030.06718.41
5.6.180.0030.07018.43
5.6.170.0100.07018.30
5.6.160.0100.08718.34
5.6.150.0000.09018.34
5.6.140.0100.05318.38
5.6.130.0070.06018.43
5.6.120.0130.08018.44
5.6.110.0100.06018.34
5.6.100.0100.06318.41
5.6.90.0100.07718.31
5.6.80.0100.07717.69
5.6.70.0070.06017.81
5.6.60.0070.06317.80
5.6.50.0070.07717.72
5.6.40.0100.07017.76
5.6.30.0000.05717.77
5.6.20.0100.05017.69
5.6.10.0070.04017.71
5.6.00.0000.04317.82
5.5.350.0070.08320.63
5.5.340.0000.04718.20
5.5.330.0070.08318.21
5.5.320.0130.08018.16
5.5.310.0170.06318.15
5.5.300.0100.05018.23
5.5.290.0030.07718.24
5.5.280.0100.06318.21
5.5.270.0130.06718.15
5.5.260.0100.07718.16
5.5.250.0030.04018.04
5.5.240.0130.07017.49
5.5.230.0070.06717.54
5.5.220.0100.06017.55
5.5.210.0070.06017.64
5.5.200.0030.08017.53
5.5.190.0030.07317.61
5.5.180.0100.03717.55
5.5.160.0070.07017.46
5.5.150.0000.05017.61
5.5.140.0100.03717.53
5.5.130.0100.04717.55
5.5.120.0100.07717.57
5.5.110.0100.05317.55
5.5.100.0100.03317.45
5.5.90.0030.05317.45
5.5.80.0070.07717.41
5.5.70.0070.06017.48
5.5.60.0070.03717.34
5.5.50.0130.06717.48
5.5.40.0000.08017.45
5.5.30.0000.04717.34
5.5.20.0070.07017.41
5.5.10.0030.05017.41
5.5.00.0100.03317.40
5.4.450.0000.08719.67
5.4.440.0100.07019.63
5.4.430.0100.04019.66
5.4.420.0100.08019.60
5.4.410.0070.04019.44
5.4.400.0130.06719.22
5.4.390.0070.04719.18
5.4.380.0070.06319.27
5.4.370.0030.07319.18
5.4.360.0000.07019.27
5.4.350.0070.04719.18
5.4.340.0100.05719.25
5.4.320.0070.05719.28
5.4.310.0030.04319.29
5.4.300.0030.08719.38
5.4.290.0030.06019.29
5.4.280.0130.06019.30
5.4.270.0100.06719.23
5.4.260.0070.04719.26
5.4.250.0100.03319.21
5.4.240.0130.04719.30
5.4.230.0200.05719.28
5.4.220.0030.04019.38
5.4.210.0130.07019.28
5.4.200.0070.08019.17
5.4.190.0000.07019.28
5.4.180.0100.07719.16
5.4.170.0030.04019.33
5.4.160.0000.07319.22
5.4.150.0130.07019.24
5.4.140.0030.07716.53
5.4.130.0030.05016.68
5.4.120.0030.04016.57
5.4.110.0070.04016.54
5.4.100.0200.02716.48
5.4.90.0000.06016.55
5.4.80.0000.08016.54
5.4.70.0130.07016.57
5.4.60.0100.06016.57
5.4.50.0030.06016.60
5.4.40.0000.06316.61
5.4.30.0070.07316.54
5.4.20.0030.04716.57
5.4.10.0070.03716.63
5.4.00.0100.06715.91
5.3.290.0030.07314.75
5.3.280.0070.07314.70
5.3.270.0100.03314.88
5.3.260.0100.07714.76
5.3.250.0100.07314.76
5.3.240.0070.06314.77
5.3.230.0000.04014.76
5.3.220.0100.06714.73
5.3.210.0030.04314.72
5.3.200.0100.06314.82
5.3.190.0000.08714.74
5.3.180.0030.06314.73
5.3.170.0170.07314.74
5.3.160.0070.06714.72
5.3.150.0130.07014.73
5.3.140.0100.06714.64
5.3.130.0130.07314.79
5.3.120.0030.05714.73
5.3.110.0170.06714.65
5.3.100.0100.04314.26
5.3.90.0100.04714.18
5.3.80.0030.04014.14
5.3.70.0000.06014.21
5.3.60.0030.06714.05
5.3.50.0030.04313.95
5.3.40.0100.03014.14
5.3.30.0030.04714.06
5.3.20.0030.03713.72
5.3.10.0000.03713.68
5.3.00.0000.03713.79
5.2.170.0070.03011.35
5.2.160.0070.03011.25
5.2.150.0070.06311.45
5.2.140.0030.03311.24
5.2.130.0000.03011.28
5.2.120.0000.03011.13
5.2.110.0030.02711.26
5.2.100.0130.04711.29
5.2.90.0000.03311.39
5.2.80.0000.03311.24
5.2.70.0070.02711.38
5.2.60.0030.03311.21
5.2.50.0030.03011.29
5.2.40.0070.02311.06
5.2.30.0030.03011.26
5.2.20.0030.02711.21
5.2.10.0000.03011.23
5.2.00.0000.03011.17
5.1.60.0000.02710.38
5.1.50.0000.02310.38
5.1.40.0000.02710.36
5.1.30.0070.02310.52
5.1.20.0000.02710.73
5.1.10.0000.02710.46
5.1.00.0030.02310.33
5.0.50.0000.0239.01
5.0.40.0000.0209.01
5.0.30.0000.0309.01
5.0.20.0030.0179.01
5.0.10.0000.0209.01
5.0.00.0000.0309.01
4.4.90.0000.0179.01
4.4.80.0000.0179.01
4.4.70.0000.0179.01
4.4.60.0030.0139.01
4.4.50.0030.0139.01
4.4.40.0000.0239.01
4.4.30.0070.0109.01
4.4.20.0000.0179.01
4.4.10.0030.0139.01
4.4.00.0070.0279.01
4.3.110.0070.0109.01
4.3.100.0000.0139.01
4.3.90.0000.0179.01
4.3.80.0000.0239.01
4.3.70.0000.0179.01
4.3.60.0000.0179.01
4.3.50.0030.0139.01
4.3.40.0000.0239.01
4.3.30.0000.0179.01
4.3.20.0000.0139.01
4.3.10.0000.0179.01
4.3.00.0000.0139.01

preferences:
38.28 ms | 401 KiB | 5 Q