3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = <<<XML <?xml version="1.0" encoding="UTF-8"?> <d:multistatus xmlns:d="DAV:" xmlns:nc="http://example.com" xmlns:oc="http://example.com" xmlns:s="http://example.com"> <d:response> <d:href>/remote.php/dav/files/test3.txt</d:href> <d:propstat> <d:prop> <d:getlastmodified>Tue, 03 Dec 2019 12:42:33 GMT</d:getlastmodified> <d:resourcetype> <d:collection /> </d:resourcetype> <d:quota-used-bytes>1942356098</d:quota-used-bytes> <d:quota-available-bytes>-3</d:quota-available-bytes> <d:getetag>"5de6583924a4b"</d:getetag> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> </d:response> <d:response> <d:href>/remote.php/dav/files/test2.txt</d:href> <d:propstat> <d:prop> <d:getlastmodified>Thu, 21 Nov 2019 11:30:59 GMT</d:getlastmodified> <d:resourcetype> <d:collection /> </d:resourcetype> <d:quota-used-bytes>130</d:quota-used-bytes> <d:quota-available-bytes>-3</d:quota-available-bytes> <d:getetag>"5dd675741bdcb"</d:getetag> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> <d:propstat> <d:prop> <d:getcontentlength /> <d:getcontenttype /> </d:prop> <d:status>HTTP/1.1 404 Not Found</d:status> </d:propstat> </d:response> <d:response> <d:href>/remote.php/dav/files/test.txt</d:href> <d:propstat> <d:prop> <d:getlastmodified>Wed, 27 Nov 2019 10:47:45 GMT</d:getlastmodified> <d:getcontentlength>1942355968</d:getcontentlength> <d:resourcetype /> <d:getetag>"aa05cb48be85a3c306421807c2467acf"</d:getetag> <d:getcontenttype>application/octet-stream</d:getcontenttype> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> <d:propstat> <d:prop> <d:quota-used-bytes /> <d:quota-available-bytes /> </d:prop> <d:status>HTTP/1.1 404 Not Found</d:status> </d:propstat> </d:response> <d:response> <d:href>/remote.php/dav/files/openSUSE-Leap-42.3-DVD-x86_64.iso/</d:href> <d:propstat> <d:prop> <d:getlastmodified>Wed, 27 Nov 2019 10:31:51 GMT</d:getlastmodified> <d:resourcetype> <d:collection /> </d:resourcetype> <d:quota-used-bytes>0</d:quota-used-bytes> <d:quota-available-bytes>-3</d:quota-available-bytes> <d:getetag>"5de6309233431"</d:getetag> </d:prop> <d:status>HTTP/1.1 200 OK</d:status> </d:propstat> <d:propstat> <d:prop> <d:getcontentlength /> <d:getcontenttype /> </d:prop> <d:status>HTTP/1.1 404 Not Found</d:status> </d:propstat> </d:response> </d:multistatus> XML; $xml = simplexml_load_string($string); var_dump($xml->getName());

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.00.0110.01020.09
8.4.150.0030.00014.05
8.4.140.0170.00417.82
8.4.130.0120.01017.95
8.4.120.0110.00620.61
8.4.110.0110.00918.92
8.4.100.0110.01017.77
8.4.90.0040.00717.88
8.4.80.0110.00617.97
8.4.70.0110.00718.15
8.4.60.0140.00719.04
8.4.50.0100.01017.64
8.4.40.0100.01019.27
8.4.30.0100.01020.27
8.4.20.0040.00719.82
8.4.10.0100.00617.67
8.3.280.0010.00114.05
8.3.270.0130.00716.80
8.3.260.0080.01116.75
8.3.250.0150.00419.14
8.3.240.0110.00916.51
8.3.230.0150.00316.90
8.3.220.0050.00416.71
8.3.210.0040.00416.95
8.3.200.0030.00816.56
8.3.190.0090.01016.82
8.3.180.0130.00616.56
8.3.170.0060.01216.60
8.3.160.0040.00418.71
8.3.150.0130.00619.11
8.3.140.0000.00619.03
8.3.130.0030.00618.64
8.3.120.0000.00819.00
8.3.110.0030.00620.94
8.3.100.0040.00424.06
8.3.90.0040.00426.77
8.3.80.0060.00316.97
8.3.70.0100.00716.75
8.3.60.0100.01318.68
8.3.50.0070.00624.56
8.3.40.0140.00418.81
8.3.30.0110.00418.96
8.3.20.0040.00421.08
8.3.10.0040.00420.46
8.3.00.0000.00821.01
8.2.290.0100.00920.42
8.2.280.0110.00718.58
8.2.270.0060.01216.86
8.2.260.0000.01616.85
8.2.250.0040.00418.65
8.2.240.0040.00417.43
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0050.00326.77
8.2.200.0090.00017.00
8.2.190.0070.01416.75
8.2.180.0060.01318.66
8.2.170.0000.01722.96
8.2.160.0120.00322.40
8.2.150.0070.00024.18
8.2.140.0120.00024.66
8.2.130.0070.00026.16
8.2.120.0040.00419.85
8.2.110.0090.00022.34
8.2.100.0080.00418.03
8.2.90.0030.00517.63
8.2.80.0090.00017.97
8.2.70.0000.00817.63
8.2.60.0050.00317.75
8.2.50.0000.00817.75
8.2.40.0030.00619.60
8.2.30.0030.00619.55
8.2.20.0040.00418.19
8.2.10.0030.00619.56
8.2.00.0050.00219.43
8.1.330.0040.00522.15
8.1.320.0110.00816.29
8.1.310.0080.00018.15
8.1.300.0030.00617.88
8.1.290.0060.00318.88
8.1.280.0120.00625.92
8.1.270.0030.00622.08
8.1.260.0060.00326.35
8.1.250.0060.00328.09
8.1.240.0030.00623.99
8.1.230.0090.00319.28
8.1.220.0040.00417.77
8.1.210.0080.00018.77
8.1.200.0030.00617.35
8.1.190.0060.00317.22
8.1.180.0000.00718.10
8.1.170.0090.00018.71
8.1.160.0030.00619.27
8.1.150.0000.00718.95
8.1.140.0070.00022.38
8.1.130.0040.00419.32
8.1.120.0040.00417.57
8.1.110.0000.00717.59
8.1.100.0050.00317.64
8.1.90.0030.00317.64
8.1.80.0040.00417.72
8.1.70.0000.00717.55
8.1.60.0060.00317.72
8.1.50.0000.00717.74
8.1.40.0000.00817.62
8.1.30.0050.00317.70
8.1.20.0060.00317.72
8.1.10.0030.00617.73
8.1.00.0030.00617.63
8.0.300.0030.00619.91
8.0.290.0060.00317.00
8.0.280.0000.00818.57
8.0.270.0060.00317.31
8.0.260.0030.00318.59
8.0.250.0070.00017.20
8.0.240.0030.00317.27
8.0.230.0030.00317.04
8.0.220.0050.00217.00
8.0.210.0000.00717.05
8.0.200.0000.00717.16
8.0.190.0080.00017.14
8.0.180.0040.00717.19
8.0.170.0000.00917.16
8.0.160.0070.00017.09
8.0.150.0050.00317.07
8.0.140.0030.00517.09
8.0.130.0060.00013.52
8.0.120.0020.00517.14
8.0.110.0050.00317.05
8.0.100.0030.00516.90
8.0.90.0090.00017.09
8.0.80.0100.00917.07
8.0.70.0000.00717.14
8.0.60.0000.00816.98
8.0.50.0030.00517.07
8.0.30.0100.01017.12
8.0.20.0040.01517.27
8.0.10.0000.00717.29
8.0.00.0090.00916.82
7.4.330.0040.00415.55
7.4.320.0030.00316.56
7.4.300.0030.00316.71
7.4.290.0040.00416.60
7.4.280.0050.00216.73
7.4.270.0000.00616.69
7.4.260.0000.00513.37
7.4.250.0070.00016.57
7.4.240.0000.00916.75
7.4.230.0000.00716.87
7.4.220.0030.00316.71
7.4.210.0100.00616.69
7.4.200.0000.00816.69
7.4.130.0150.00416.70
7.4.120.0060.01216.75
7.4.110.0100.00716.73
7.4.100.0130.01016.54
7.4.90.0070.01116.69
7.4.80.0070.01019.39
7.4.70.0090.00916.61
7.4.60.0030.01316.79
7.4.50.0100.00316.75
7.4.40.0140.00716.64
7.4.10.0040.01515.10
7.4.00.0070.00915.13
7.3.330.0000.00716.49
7.3.320.0030.00313.13
7.3.310.0040.00416.46
7.3.300.0050.00316.33
7.3.290.0090.00816.44
7.3.280.0110.00316.44
7.3.260.0040.01316.54
7.3.240.0110.00716.43
7.3.230.0160.01016.68
7.3.210.0130.00316.41
7.3.200.0100.00716.36
7.3.190.0100.00716.54
7.3.180.0060.00916.56
7.3.170.0130.00416.52
7.3.160.0000.01616.44
7.3.130.0090.00914.95
7.3.120.0110.00514.81
7.3.110.0090.00914.96
7.3.100.0130.00314.61
7.3.90.0080.00714.72
7.3.80.0050.01114.63
7.3.70.0060.00914.78
7.3.60.0060.00914.94
7.3.50.0090.00814.71
7.3.40.0100.00414.72
7.3.30.0040.01014.71
7.3.20.0080.00515.72
7.3.10.0050.00715.79
7.3.00.0080.00615.77
7.2.330.0100.00816.52
7.2.320.0090.00916.80
7.2.310.0100.00716.70
7.2.300.0160.00916.80
7.2.290.0140.00316.80
7.2.260.0070.01315.12
7.2.250.0070.01214.89
7.2.240.0100.00514.86
7.2.230.0110.00615.21
7.2.220.0110.00814.72
7.2.210.0090.00715.08
7.2.200.0080.00715.03
7.2.190.0060.00615.12
7.2.180.0070.00915.04
7.2.170.0040.00914.86
7.2.160.0070.00715.12
7.2.150.0090.00616.88
7.2.140.0080.00416.92
7.2.130.0120.00017.20
7.2.120.0110.00016.80
7.2.110.0000.01516.77
7.2.100.0060.00916.80
7.2.90.0120.00416.79
7.2.80.0030.01016.80
7.2.70.0030.01416.76
7.2.60.0030.00717.01
7.2.50.0030.01016.94
7.2.40.0030.00617.05
7.2.30.0000.01616.82
7.2.20.0030.01317.00
7.2.10.0060.00616.91
7.2.00.0080.00816.89
7.1.330.0000.01414.07
7.1.320.0100.00513.95
7.1.310.0000.01514.24
7.1.300.0120.00314.07
7.1.290.0100.00714.05
7.1.280.0030.00914.03
7.1.270.0090.01014.05
7.1.260.0080.00514.06

preferences:
36.37 ms | 403 KiB | 5 Q