3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <root> <item> <foo id=\"1\"><![CDATA[123]]></foo> <bar><![CDATA[abc]]></bar> </item> <item> <foo id=\"1\">123</foo> <bar>abc</bar> </item> </root>"; $sxml = simplexml_load_string($xml, null, LIBXML_NOCDATA); print_r($sxml); print_r($sxml->item[0]->foo["id"]);

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.70.0090.00916.88
8.3.60.0070.00718.68
8.3.50.0070.00718.39
8.3.40.0040.01218.78
8.3.30.0120.00418.84
8.3.20.0040.00420.41
8.3.10.0040.00423.86
8.3.00.0030.00520.10
8.2.180.0140.00718.39
8.2.170.0090.00622.96
8.2.160.0100.00320.64
8.2.150.0030.00624.18
8.2.140.0040.00424.66
8.2.130.0070.00026.16
8.2.120.0050.00319.61
8.2.110.0100.00021.17
8.2.100.0080.00418.16
8.2.90.0000.00818.59
8.2.80.0060.00318.34
8.2.70.0050.00317.63
8.2.60.0080.00017.75
8.2.50.0040.00418.04
8.2.40.0060.00317.87
8.2.30.0030.00619.43
8.2.20.0070.00018.29
8.2.10.0000.00718.29
8.2.00.0040.00418.57
8.1.280.0040.01425.92
8.1.270.0000.00923.99
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.73
8.1.230.0090.00321.04
8.1.220.0040.00417.91
8.1.210.0000.00920.63
8.1.200.0080.00017.47
8.1.190.0000.00817.47
8.1.180.0050.00318.10
8.1.170.0000.00817.62
8.1.160.0000.00819.00
8.1.150.0070.00020.48
8.1.140.0000.00817.92
8.1.130.0030.00619.21
8.1.120.0000.00717.64
8.1.110.0080.00017.63
8.1.100.0000.00917.45
8.1.90.0030.00417.51
8.1.80.0040.00417.51
8.1.70.0030.00617.51
8.1.60.0030.00517.66
8.1.50.0050.00317.68
8.1.40.0090.00017.60
8.1.30.0070.00417.79
8.1.20.0040.00417.86
8.1.10.0040.00417.77
8.1.00.0070.00017.65
8.0.300.0040.00420.06
8.0.290.0080.00016.75
8.0.280.0000.00718.55
8.0.270.0040.00417.45
8.0.260.0060.00016.96
8.0.250.0000.00717.12
8.0.240.0000.00717.18
8.0.230.0030.00317.11
8.0.220.0070.00317.04
8.0.210.0000.00716.94
8.0.200.0060.00017.17
8.0.190.0040.00417.09
8.0.180.0000.00716.94
8.0.170.0000.00916.96
8.0.160.0040.00417.05
8.0.150.0080.00016.91
8.0.140.0080.00016.82
8.0.130.0030.00313.54
8.0.120.0050.00317.03
8.0.110.0040.00416.98
8.0.100.0040.00417.07
8.0.90.0000.00717.05
8.0.80.0030.01216.99
8.0.70.0080.00016.89
8.0.60.0080.00017.09
8.0.50.0040.00416.89
8.0.30.0060.01217.20
8.0.20.0090.01017.42
8.0.10.0040.00417.01
8.0.00.0090.00917.03
7.4.330.0000.00715.55
7.4.320.0030.00316.64
7.4.300.0060.00016.78
7.4.290.0030.00316.72
7.4.280.0030.00616.78
7.4.270.0000.00716.65
7.4.260.0030.00316.67
7.4.250.0040.00416.80
7.4.240.0000.00816.73
7.4.230.0000.00816.80
7.4.220.0030.00616.82
7.4.210.0080.01116.71
7.4.200.0000.00716.59
7.4.160.0100.00816.73
7.4.150.0030.01417.40
7.4.140.0110.00617.86
7.4.130.0130.01016.80
7.4.120.0120.00716.73
7.4.110.0140.00316.51
7.4.100.0180.00316.83
7.4.90.0090.00916.85
7.4.80.0100.01319.39
7.4.70.0090.00916.70
7.4.60.0090.00916.59
7.4.50.0110.00316.70
7.4.40.0130.00416.71
7.4.00.0090.00515.19
7.3.330.0030.00313.32
7.3.320.0000.00613.23
7.3.310.0000.00716.51
7.3.300.0030.00316.42
7.3.290.0030.00316.42
7.3.280.0080.01016.38
7.3.270.0060.01117.40
7.3.260.0120.00916.58
7.3.250.0080.01016.49
7.3.240.0090.01016.61
7.3.230.0180.00416.78
7.3.210.0060.01316.55
7.3.200.0100.01016.71
7.3.190.0100.00616.70
7.3.180.0040.01216.55
7.3.170.0030.01216.64
7.3.160.0080.00816.48
7.3.120.0030.01414.61
7.3.110.0090.00714.77
7.3.100.0120.00014.84
7.3.90.0040.01114.70
7.3.80.0100.00315.02
7.3.70.0030.00814.90
7.3.60.0050.00514.79
7.3.50.0090.00614.87
7.3.40.0030.01014.80
7.3.30.0000.01014.77
7.3.20.0070.00716.73
7.3.10.0040.00816.91
7.3.00.0030.00716.64
7.2.330.0170.00416.83
7.2.320.0110.00716.75
7.2.310.0140.00316.77
7.2.300.0140.00716.49
7.2.290.0100.00616.55
7.2.250.0070.01115.24
7.2.240.0030.01314.98
7.2.230.0070.00415.23
7.2.220.0090.00914.80
7.2.210.0100.00314.91
7.2.200.0130.00314.98
7.2.190.0060.00614.92
7.2.180.0000.01115.11
7.2.170.0100.00415.02
7.2.80.0090.00316.64
7.2.60.0040.01116.62
7.2.20.0210.02017.56
7.2.10.0280.01417.80
7.2.00.0300.00717.32
7.1.330.0090.00616.00
7.1.320.0070.00415.96
7.1.310.0030.00915.75
7.1.300.0030.01215.59
7.1.290.0000.00915.91
7.1.280.0060.00615.84
7.1.270.0070.00715.82
7.1.260.0100.00315.94
7.1.200.0030.00815.63
7.1.140.0300.00616.35
7.1.130.0320.00716.66
7.1.120.0290.01416.82
7.1.110.0310.00916.02
7.1.100.0230.01416.30
7.1.90.0260.00615.87
7.1.80.0260.01216.01
7.1.70.0240.01415.25
7.1.60.0360.01633.40
7.1.50.0520.00432.72
7.1.40.0350.02132.84
7.1.30.0330.01532.90
7.1.20.0960.01032.76
7.1.10.0240.00714.89
7.1.00.0220.01514.95

preferences:
97.8 ms | 401 KiB | 5 Q