3v4l.org

run code in 500+ PHP versions simultaneously
<?php $xml_string = '<?xml version="1.0" encoding="utf-8"?> <Order DeliveryNo="PH00127495JP"> <Status> <State StateDate="2016-06-28 11:37:47" StateMessage="亲,您的包裹已入库完成,祝您海淘愉快!" StateOperator="PH002JP" /> <State StateDate="2016-06-29 12:32:13" StateMessage="亲,您的包裹已安排极速转运!" StateOperator="PH002JP" /> <State StateDate="2016-07-02 09:16:58" StateMessage="亲,您的包裹已到达HK分拨中心,等待清关中!" StateOperator="PH005CN" /> <State StateDate="2016-07-04 09:32:16" StateMessage="亲,您的包裹已清关完毕!" StateOperator="PH006CN" /> </Status> </Order>'; libxml_disable_entity_loader(true); $obj = simplexml_load_string($xml_string, 'SimpleXMLElement', LIBXML_NOCDATA); print_r($obj); echo $obj->attributes()->DeliveryNo;

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.5.30.0110.00619.21
8.5.20.0100.00720.17
8.5.10.0090.00820.22
8.5.00.0100.01220.34
8.4.180.0120.01020.80
8.4.170.0120.01120.45
8.4.160.0180.00524.10
8.4.150.0050.00716.99
8.4.140.0130.00818.23
8.4.130.0120.00818.88
8.4.120.0130.00924.30
8.4.110.0120.01219.09
8.4.100.0150.00619.08
8.4.90.0110.00920.92
8.4.80.0100.01119.10
8.4.70.0130.00719.28
8.4.60.0130.00819.25
8.4.50.0120.00818.72
8.4.40.0070.01118.77
8.4.30.0040.00417.98
8.4.20.0130.00717.93
8.4.10.0170.00317.96
8.3.300.0070.00920.98
8.3.290.0090.01121.26
8.3.280.0120.00818.82
8.3.270.0110.01016.79
8.3.260.0100.00916.98
8.3.250.0090.01018.88
8.3.240.0100.00917.29
8.3.230.0060.00316.96
8.3.220.0140.00619.21
8.3.210.0050.00317.03
8.3.200.0050.00416.85
8.3.190.0040.00519.04
8.3.180.0110.01017.32
8.3.170.0120.00620.79
8.3.160.0180.00017.25
8.3.150.0040.01116.94
8.3.140.0090.00917.44
8.3.130.0030.00518.74
8.3.120.0100.01020.79
8.3.110.0080.00017.13
8.3.100.0070.00416.88
8.3.90.0080.00026.77
8.3.80.0030.00719.36
8.3.70.0070.01116.88
8.3.60.0130.01018.80
8.3.50.0090.01022.18
8.3.40.0070.00719.02
8.3.30.0000.01418.90
8.3.20.0110.00720.38
8.3.10.0040.00421.82
8.3.00.0110.00419.50
8.2.300.0100.00922.24
8.2.290.0140.00320.82
8.2.280.0030.00818.75
8.2.270.0120.00619.34
8.2.260.0040.01118.57
8.2.250.0060.00317.27
8.2.240.0090.00017.22
8.2.230.0080.00022.58
8.2.220.0040.00424.06
8.2.210.0130.00626.77
8.2.200.0080.00418.88
8.2.190.0160.00316.88
8.2.180.0130.00616.63
8.2.170.0160.00319.14
8.2.160.0030.01322.96
8.2.150.0040.00425.66
8.2.140.0090.00024.66
8.2.130.0060.00326.16
8.2.120.0070.00020.89
8.2.110.0100.00021.29
8.2.100.0120.00018.03
8.2.90.0040.00418.09
8.2.80.0000.00818.28
8.2.70.0040.00418.05
8.2.60.0000.00818.15
8.2.50.0030.00618.10
8.2.40.0030.00620.80
8.2.30.0000.00719.40
8.2.20.0000.00817.97
8.2.10.0070.00018.35
8.2.00.0040.00418.42
8.1.340.0130.00817.92
8.1.330.0030.00521.96
8.1.320.0090.01116.45
8.1.310.0100.00718.81
8.1.300.0030.00619.86
8.1.290.0060.00330.84
8.1.280.0100.01025.92
8.1.270.0030.00524.14
8.1.260.0000.00826.35
8.1.250.0050.00328.09
8.1.240.0090.00022.18
8.1.230.0040.00721.23
8.1.220.0030.00518.04
8.1.210.0030.00618.88
8.1.200.0000.00817.48
8.1.190.0030.00617.48
8.1.180.0000.00818.10
8.1.170.0050.00318.78
8.1.160.0020.00522.26
8.1.150.0040.00420.76
8.1.140.0070.00019.69
8.1.130.0090.00017.51
8.1.120.0000.00717.53
8.1.110.0000.00717.66
8.1.100.0050.00217.54
8.1.90.0030.00617.68
8.1.80.0070.00017.67
8.1.70.0040.00417.65
8.1.60.0030.00517.75
8.1.50.0060.00317.75
8.1.40.0060.00317.75
8.1.30.0030.00617.89
8.1.20.0030.00517.83
8.1.10.0000.00717.64
8.1.00.0040.00417.72
8.0.300.0000.00820.16
8.0.290.0060.00316.88
8.0.280.0000.00718.61
8.0.270.0040.00417.39
8.0.260.0030.00317.09
8.0.250.0070.00017.26
8.0.240.0000.00817.29
8.0.230.0050.00317.16
8.0.220.0040.00417.11
8.0.210.0000.00817.09
8.0.200.0030.00317.00
8.0.190.0040.00417.08
8.0.180.0000.00717.10
8.0.170.0000.00817.19
8.0.160.0000.00917.21
8.0.150.0100.00017.08
8.0.140.0000.00716.98
8.0.130.0030.00313.47
8.0.120.0040.00416.99
8.0.110.0070.00017.13
8.0.100.0070.00017.07
8.0.90.0000.00817.03
8.0.80.0090.01117.24
8.0.70.0000.00817.02
8.0.60.0020.00517.14
8.0.50.0040.00417.18
8.0.30.0100.01017.39
8.0.20.0070.01417.45
8.0.10.0030.00317.08
8.0.00.0100.00716.94
7.4.330.0000.00616.89
7.4.320.0030.00316.75
7.4.300.0030.00716.66
7.4.290.0000.00716.65
7.4.280.0000.00816.72
7.4.270.0000.00716.66
7.4.260.0030.00316.80
7.4.250.0040.00416.63
7.4.240.0000.00716.79
7.4.230.0070.00016.82
7.4.220.0170.01016.91
7.4.210.0090.01216.72
7.4.200.0040.00416.74
7.4.160.0040.01216.64
7.4.150.0120.00617.40
7.4.140.0080.01317.86
7.4.130.0060.01116.75
7.4.120.0090.00916.82
7.4.110.0110.00716.62
7.4.100.0130.00316.75
7.4.90.0170.01016.73
7.4.80.0190.00319.39
7.4.70.0060.01216.65
7.4.60.0030.01316.69
7.4.50.0030.01216.59
7.4.40.0130.00316.75
7.4.30.0160.00016.75
7.4.00.0060.00915.01
7.3.330.0030.00313.24
7.3.320.0030.00313.07
7.3.310.0070.00016.20
7.3.300.0070.00016.39
7.3.290.0080.00616.35
7.3.280.0060.01116.38
7.3.270.0140.00417.40
7.3.260.0130.00716.60
7.3.250.0070.01116.56
7.3.240.0020.01516.43
7.3.230.0080.00816.51
7.3.210.0120.01216.39
7.3.200.0090.01316.74
7.3.190.0110.00616.77
7.3.180.0080.01216.60
7.3.170.0100.00716.65
7.3.160.0070.01016.78
7.2.330.0070.01317.00
7.2.320.0170.00616.63
7.2.310.0060.01116.86
7.2.300.0030.01516.48
7.2.290.0030.01416.96
7.2.60.0060.00916.88
7.2.00.0070.00719.25
7.1.200.0070.00715.71
7.1.70.0040.00417.32
7.1.60.0000.01319.79
7.1.00.0100.07022.43
7.0.200.0070.00715.03
7.0.80.1770.07320.03
7.0.70.0330.05320.09
7.0.60.0300.06320.09
7.0.50.0930.05720.50
7.0.40.0870.06720.50
7.0.30.1330.05320.34
7.0.20.1070.06320.54
7.0.10.1100.07720.38
7.0.00.1070.06020.50
5.6.280.0070.07321.13
5.6.230.0170.06720.82
5.6.220.0200.06720.84
5.6.210.0200.05720.83
5.6.200.0270.06021.13
5.6.190.0130.06021.30
5.6.180.0330.07321.11
5.6.170.0200.05721.29
5.6.160.0200.06721.13
5.6.150.0100.06721.20
5.6.140.0100.06321.12
5.6.130.0230.07021.18
5.6.120.0200.08021.25
5.6.110.0270.07721.13
5.6.100.0200.05721.21
5.6.90.0200.06721.13
5.6.80.0130.05720.60
5.6.70.0170.06020.52
5.6.60.0130.06020.60
5.6.50.0270.07020.50
5.6.40.0200.05720.61
5.6.30.0230.05320.52
5.6.20.0100.06020.46
5.6.10.0130.05720.55
5.6.00.0200.06320.54
5.5.370.0130.06020.57
5.5.360.0230.05720.48
5.5.350.0200.07020.59
5.5.340.0400.03720.96
5.5.330.0170.06020.97
5.5.320.0130.06321.00
5.5.310.0030.08320.93
5.5.300.0130.06020.94
5.5.290.0170.06021.05
5.5.280.0170.06720.90
5.5.270.0230.07721.07
5.5.260.0130.06721.07
5.5.250.0230.08020.70
5.5.240.0300.07020.40
5.5.230.0300.06720.38
5.5.220.0230.06720.25
5.5.210.0200.07320.29
5.5.200.0270.04720.36
5.5.190.0230.05720.38
5.5.180.0230.05020.32
5.5.160.0300.04720.34
5.5.150.0230.05320.30
5.5.140.0170.05720.25
5.5.130.0100.06020.16
5.5.120.0100.06020.27
5.5.110.0230.06720.23
5.5.100.0130.06020.32
5.5.90.0230.05320.30
5.5.80.0170.06320.17
5.5.70.0130.06720.17
5.5.60.0170.05320.24
5.5.50.0130.05320.11
5.5.40.0100.06020.26
5.5.30.0200.06020.31
5.5.20.0230.05320.13
5.5.10.0230.06020.14
5.5.00.0230.06720.05

preferences:
53.97 ms | 2316 KiB | 5 Q