3v4l.org

run code in 300+ PHP versions simultaneously
<?php $note=<<<XML <sample> <Item ItemNumber="00000088" FormattedItemNumber="00000-088"> <CompatibleModels /> <Category CatId="160" > test 123 </Category> <Images /> <Documents /> <RequiredItems /> </Item> </sample> XML; $xml=simplexml_load_string($note); //print_r($xml); foreach ($xml as $items) { echo $items->Category['CatId']; }

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.4.140.0110.01117.87
8.4.130.0070.01217.94
8.4.120.0100.00924.10
8.4.110.0060.00323.38
8.4.100.0110.00518.18
8.4.90.0050.00519.06
8.4.80.0150.00517.96
8.4.70.0060.00218.12
8.4.60.0080.01219.21
8.4.50.0140.00618.00
8.4.40.0100.01019.62
8.4.30.0110.00720.68
8.4.20.0080.01219.24
8.4.10.0100.01017.76
8.3.270.0120.00816.97
8.3.260.0100.00817.21
8.3.250.0110.00719.06
8.3.240.0150.00517.37
8.3.230.0110.00916.79
8.3.220.0100.00817.29
8.3.210.0070.01216.69
8.3.200.0060.00316.57
8.3.190.0120.00717.48
8.3.180.0110.00816.89
8.3.170.0120.00616.71
8.3.160.0140.00416.72
8.3.150.0100.01017.19
8.3.140.0090.00617.37
8.3.130.0000.00818.62
8.3.120.0160.00319.28
8.3.110.0030.00520.94
8.3.100.0150.00416.75
8.3.90.0080.00026.77
8.3.80.0030.00616.63
8.3.70.0100.00716.88
8.3.60.0110.00418.68
8.3.50.0110.00717.59
8.3.40.0120.00318.95
8.3.30.0140.00019.14
8.3.20.0080.00022.12
8.3.10.0040.00421.15
8.3.00.0000.00822.07
8.2.290.0070.00421.05
8.2.280.0090.01018.60
8.2.270.0120.00316.80
8.2.260.0110.00419.05
8.2.250.0070.01416.88
8.2.240.0060.00319.03
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0040.00426.77
8.2.200.0060.00316.75
8.2.190.0070.01117.13
8.2.180.0040.01525.92
8.2.170.0120.00322.96
8.2.160.0100.00322.24
8.2.150.0000.00724.18
8.2.140.0050.00324.66
8.2.130.0000.00726.16
8.2.120.0050.00326.16
8.2.110.0070.00321.16
8.2.100.0040.00818.28
8.2.90.0040.00418.22
8.2.80.0040.00418.05
8.2.70.0110.00018.05
8.2.60.0000.00818.47
8.2.50.0060.00319.53
8.2.40.0040.00419.63
8.2.30.0050.00320.67
8.2.20.0080.00018.27
8.2.10.0040.00419.00
8.2.00.0070.00018.27
8.1.330.0110.00722.09
8.1.320.0090.00916.33
8.1.310.0080.00816.83
8.1.300.0000.00918.35
8.1.290.0050.00530.84
8.1.280.0110.00325.92
8.1.270.0070.00023.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0030.00624.15
8.1.230.0070.00721.18
8.1.220.0080.00017.91
8.1.210.0030.00618.78
8.1.200.0000.01017.48
8.1.190.0090.00017.48
8.1.180.0060.00318.10
8.1.170.0000.00818.73
8.1.160.0050.00319.10
8.1.150.0020.00519.04
8.1.140.0040.00420.35
8.1.130.0030.00320.34
8.1.120.0050.00217.68
8.1.110.0040.00317.71
8.1.100.0050.00317.54
8.1.90.0030.00617.63
8.1.80.0000.00917.56
8.1.70.0070.00017.61
8.1.60.0000.00817.65
8.1.50.0040.00417.74
8.1.40.0000.00817.79
8.1.30.0040.00417.75
8.1.20.0030.00517.95
8.1.10.0030.00517.84
8.1.00.0030.00617.75
8.0.300.0000.00719.98
8.0.290.0000.00917.00
8.0.280.0040.00418.64
8.0.270.0070.00017.35
8.0.260.0050.00318.64
8.0.250.0080.00017.29
8.0.240.0030.00317.09
8.0.230.0000.00717.06
8.0.220.0070.00017.05
8.0.210.0000.00717.17
8.0.200.0030.00317.25
8.0.190.0040.00417.24
8.0.180.0050.00217.07
8.0.170.0050.00317.08
8.0.160.0000.00717.10
8.0.150.0000.00717.16
8.0.140.0070.00017.17
8.0.130.0030.00313.57
8.0.120.0040.00417.17
8.0.110.0000.00717.11
8.0.100.0050.00217.00
8.0.90.0070.00017.03
8.0.80.0050.01017.10
8.0.70.0000.00817.12
8.0.60.0050.00317.13
8.0.50.0040.00417.05
8.0.30.0120.00617.38
8.0.20.0130.00617.30
8.0.10.0030.00517.20
8.0.00.0080.01417.00
7.4.330.0000.00515.55
7.4.320.0090.00016.77
7.4.300.0000.00616.76
7.4.290.0040.00416.62
7.4.280.0040.00416.63
7.4.270.0000.00816.81
7.4.260.0000.00716.61
7.4.250.0040.00416.60
7.4.240.0080.00016.79
7.4.230.0000.00716.81
7.4.220.0030.00516.80
7.4.210.0080.01016.81
7.4.200.0030.00316.71
7.4.160.0060.01116.72
7.4.140.0130.01017.86
7.4.130.0070.01116.73
7.4.120.0110.00816.88
7.4.110.0070.01016.71
7.4.100.0070.01016.64
7.4.90.0060.01316.65
7.4.80.0130.00319.39
7.4.70.0030.01316.57
7.4.60.0080.00816.80
7.4.50.0070.01016.57
7.4.40.0060.00916.82
7.4.00.0110.00515.04
7.3.330.0000.00613.50
7.3.320.0000.00613.46
7.3.310.0000.00716.44
7.3.300.0000.00716.43
7.3.290.0090.00616.64
7.3.280.0040.01116.57
7.3.260.0120.00616.64
7.3.240.0090.01016.68
7.3.230.0040.01516.84
7.3.210.0150.00316.63
7.3.200.0060.01116.55
7.3.190.0090.00616.65
7.3.180.0090.00916.63
7.3.170.0080.00816.76
7.3.160.0100.00616.72
7.3.120.0060.01314.84
7.3.110.0110.00715.05
7.3.100.0120.00314.72
7.3.90.0120.00814.75
7.3.80.0040.01114.87
7.3.70.0090.00415.10
7.3.60.0080.00814.89
7.3.50.0030.01214.95
7.3.40.0080.00714.84
7.3.30.0100.00614.69
7.3.20.0070.00816.84
7.3.10.0100.00816.77
7.3.00.0070.00716.70
7.2.330.0150.00316.66
7.2.320.0080.00816.92
7.2.310.0080.00816.57
7.2.300.0170.00016.83
7.2.290.0060.01016.95
7.2.250.0000.01915.20
7.2.240.0070.01115.29
7.2.230.0150.00315.08
7.2.220.0030.01114.93
7.2.210.0040.01515.09
7.2.200.0030.00715.20
7.2.190.0120.00014.91
7.2.180.0060.00915.21
7.2.170.0080.01015.13
7.2.160.0100.00514.98
7.2.150.0110.00716.99
7.2.140.0120.00517.11
7.2.130.0070.01217.09
7.2.120.0080.01117.12
7.2.110.0080.00616.92
7.2.100.0080.00517.08
7.2.90.0040.01117.18
7.2.80.0040.00917.16
7.2.70.0060.01117.00
7.2.60.0040.00917.04
7.2.50.0080.00516.99
7.2.40.0090.00617.04
7.2.30.0080.00717.14
7.2.20.0140.00117.04
7.2.10.0140.00716.96
7.2.00.0020.01217.12
7.1.330.0040.01115.85
7.1.320.0000.01116.20
7.1.310.0000.01416.11
7.1.300.0110.00415.61
7.1.290.0120.00016.22
7.1.280.0100.00515.91
7.1.270.0080.00515.68
7.1.260.0080.00715.88
7.1.250.0100.00315.89

preferences:
31.4 ms | 403 KiB | 5 Q