3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<XML <?xml version="1.0"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet"> <Table Foo="Bar" ss:ExpandedColumnCount="7"> </Table> </Workbook> XML; $sxml = new SimpleXMLElement($xml); /** * Access attribute of default namespace */ var_dump((string) $sxml->Table[0]['Foo']); // outputs: 'Bar' /** * Access attribute of non-default namespace */ var_dump((int) $sxml->Table[0]['ExpandedColumnCount']); // outputs: 0 var_dump((int) $sxml->Table[0]->attributes('ss', TRUE)->ExpandedColumnCount); // outputs: '7' ?>

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.0120.00618.68
8.3.50.0070.01122.05
8.3.40.0040.01119.10
8.3.30.0120.00618.88
8.3.20.0040.00418.60
8.3.10.0000.00819.46
8.3.00.0000.00821.76
8.2.180.0090.01216.63
8.2.170.0150.00622.96
8.2.160.0110.00820.60
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0040.00419.48
8.2.110.0030.00620.64
8.2.100.0110.00018.09
8.2.90.0040.00419.48
8.2.80.0040.00418.05
8.2.70.0060.00317.75
8.2.60.0060.00318.18
8.2.50.0090.00018.07
8.2.40.0050.00318.44
8.2.30.0000.00820.11
8.2.20.0070.00018.01
8.2.10.0040.00417.95
8.2.00.0080.00017.99
8.1.270.0040.00423.99
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00022.59
8.1.230.0030.00721.16
8.1.220.0060.00318.77
8.1.210.0030.00618.98
8.1.200.0030.00617.35
8.1.190.0050.00217.65
8.1.180.0050.00318.10
8.1.170.0040.00418.68
8.1.160.0040.00419.02
8.1.150.0000.00718.73
8.1.140.0000.00717.47
8.1.130.0000.00718.04
8.1.120.0030.00317.49
8.1.110.0030.00617.62
8.1.100.0050.00217.59
8.1.90.0040.00417.77
8.1.80.0050.00317.50
8.1.70.0000.00817.61
8.1.60.0060.00317.73
8.1.50.0040.00417.58
8.1.40.0000.00817.77
8.1.30.0040.00417.95
8.1.20.0000.00817.89
8.1.10.0000.00717.79
8.1.00.0030.00617.75
8.0.300.0040.00419.95
8.0.290.0000.00717.16
8.0.280.0080.00018.61
8.0.270.0000.00817.43
8.0.260.0030.00316.93
8.0.250.0070.00017.11
8.0.240.0050.00317.24
8.0.230.0030.00317.10
8.0.220.0030.00317.18
8.0.210.0030.00317.12
8.0.200.0060.00017.21
8.0.190.0000.00717.22
8.0.180.0000.00717.20
8.0.170.0030.00517.16
8.0.160.0000.00717.01
8.0.150.0040.00416.90
8.0.140.0000.00817.14
8.0.130.0000.00713.50
8.0.120.0050.00317.09
8.0.110.0000.00817.17
8.0.100.0040.00417.17
8.0.90.0000.00716.93
8.0.80.0030.01117.06
8.0.70.0000.00817.02
8.0.60.0040.00417.00
8.0.50.0030.00617.06
8.0.30.0110.01017.35
8.0.20.0100.00917.43
8.0.10.0050.00217.12
8.0.00.0110.00817.11
7.4.330.0000.00614.93
7.4.320.0040.00416.74
7.4.300.0000.00716.65
7.4.290.0100.00016.86
7.4.280.0050.00316.74
7.4.270.0040.00416.84
7.4.260.0050.00013.49
7.4.250.0030.00616.70
7.4.240.0020.00516.66
7.4.230.0040.00416.78
7.4.220.0090.01616.80
7.4.210.0080.00816.76
7.4.200.0000.00716.57
7.4.190.0070.00316.87
7.4.160.0070.01716.73
7.4.150.0090.00917.40
7.4.140.0100.00817.86
7.4.130.0130.00316.69
7.4.120.0070.01116.83
7.4.110.0100.00916.76
7.4.100.0140.00316.62
7.4.90.0130.01016.70
7.4.80.0090.01219.37
7.4.70.0160.00416.69
7.4.60.0130.00316.60
7.4.50.0030.00616.84
7.4.40.0000.01922.27
7.4.30.0150.00416.73
7.3.330.0000.00513.39
7.3.320.0000.00613.35
7.3.310.0070.00016.61
7.3.300.0030.00316.48
7.3.290.0090.00916.48
7.3.280.0070.00916.53
7.3.270.0120.00617.40
7.3.260.0090.01118.24
7.3.250.0090.01116.49
7.3.240.0220.00016.64
7.3.230.0140.00316.83
7.3.210.0070.01416.58
7.3.200.0150.00319.39
7.3.190.0110.01216.54
7.3.180.0080.00816.50
7.3.170.0150.00616.61
7.3.160.0070.01016.63
7.2.330.0150.00316.59
7.2.320.0100.00716.66
7.2.310.0030.01816.25
7.2.300.0130.00316.38
7.2.290.0040.01716.57
5.5.00.0070.07320.17
5.4.170.0000.07319.06
5.4.160.0030.04318.98
5.4.150.0030.06719.14
5.4.140.0030.03016.36
5.4.130.0000.07316.26
5.4.120.0030.06716.35
5.4.110.0000.08016.38
5.4.100.0000.04016.45
5.4.90.0000.03716.22
5.4.80.0100.03316.28
5.4.70.0000.04016.20
5.4.60.0100.03716.23
5.4.50.0030.05316.23
5.4.40.0100.03716.33
5.4.30.0070.04716.18
5.4.20.0030.06316.25
5.4.10.0070.06016.19
5.4.00.0000.05015.75
5.3.270.0070.07314.54
5.3.260.0030.07314.57
5.3.250.0030.03014.54
5.3.240.0000.04014.56
5.3.230.0030.05314.50
5.3.220.0070.06714.41
5.3.210.0100.06014.50
5.3.200.0000.07314.55
5.3.190.0030.07714.36
5.3.180.0030.04714.54
5.3.170.0130.03014.54
5.3.160.0030.06314.54
5.3.150.0100.06014.46
5.3.140.0030.06014.53
5.3.130.0030.08014.46
5.3.120.0030.05014.51
5.3.110.0000.07314.48
5.3.100.0000.07713.89
5.3.90.0000.08313.85
5.3.80.0000.05713.97
5.3.70.0070.03713.86
5.3.60.0030.03713.93
5.3.50.0070.07313.71
5.3.40.0030.07313.84
5.3.30.0070.07013.87
5.3.20.0030.07313.49
5.3.10.0000.05313.59
5.3.00.0070.07313.57

preferences:
35.32 ms | 404 KiB | 6 Q