3v4l.org

run code in 300+ PHP versions simultaneously
<?php $ans = <<<XML <?xml version="1.0" encoding="utf-8"?> <ResponseDoc xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <response> <index>1</index> <statusCode>Success</statusCode> </response> <response> <index>2</index> <statusCode>Success</statusCode> </response> <response> <index>3</index> <statusCode>Success</statusCode> </response> <response> <index>4</index> <statusCode>Success</statusCode> </response> </ResponseDoc> XML; $r1 = simplexml_load_string($ans); $responses = $r1->xpath('//response'); print_r($responses);

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.0140.00920.29
8.4.150.0020.00014.05
8.4.140.0110.01018.06
8.4.130.0070.00218.02
8.4.120.0070.00622.79
8.4.110.0060.00422.95
8.4.100.0060.00721.06
8.4.90.0070.00420.96
8.4.80.0110.00822.88
8.4.70.0130.00718.43
8.4.60.0100.01119.06
8.4.50.0100.00619.00
8.4.40.0130.00717.94
8.4.30.0040.00419.05
8.4.20.0110.00721.14
8.4.10.0000.00819.61
8.3.280.0120.00918.83
8.3.270.0130.01016.81
8.3.260.0050.00417.10
8.3.250.0040.00519.20
8.3.240.0130.00716.63
8.3.230.0120.00816.77
8.3.220.0060.00417.55
8.3.210.0110.00616.73
8.3.200.0060.00316.80
8.3.190.0120.00817.44
8.3.180.0110.00816.74
8.3.170.0110.00719.27
8.3.160.0130.00716.70
8.3.150.0070.01116.69
8.3.140.0070.00717.27
8.3.130.0030.00618.68
8.3.120.0030.00621.10
8.3.110.0040.01220.94
8.3.100.0100.01024.06
8.3.90.0050.00326.77
8.3.80.0030.00618.81
8.3.70.0150.00018.74
8.3.60.0090.00918.80
8.3.50.0070.00718.47
8.3.40.0100.00620.20
8.3.30.0080.00522.32
8.3.20.0000.00724.18
8.3.10.0040.00424.66
8.3.00.0000.00726.16
8.2.290.0030.00820.64
8.2.280.0120.00718.81
8.2.270.0150.00317.17
8.2.260.0160.00616.96
8.2.250.0030.00616.86
8.2.240.0050.00317.50
8.2.230.0060.00622.58
8.2.220.0030.00637.54
8.2.210.0070.00026.77
8.2.200.0060.00316.88
8.2.190.0040.01116.73
8.2.180.0090.00916.88
8.2.170.0180.00019.16
8.2.160.0070.00722.96
8.2.150.0060.00325.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00320.27
8.2.110.0150.00420.72
8.2.100.0140.00719.30
8.2.90.0300.00718.96
8.2.80.0270.00818.90
8.2.70.0260.00718.71
8.2.60.0180.02118.96
8.2.50.0100.00320.22
8.2.40.0200.00919.24
8.2.30.0160.00418.86
8.2.20.0140.00019.15
8.2.10.0140.00019.35
8.2.00.0110.00319.37
8.1.330.0090.01022.40
8.1.320.0110.00916.71
8.1.310.0090.00916.48
8.1.300.0150.00418.66
8.1.290.0030.00630.84
8.1.280.0160.00625.92
8.1.270.0080.00023.99
8.1.260.0000.00826.35
8.1.250.0000.00728.09
8.1.240.0080.00519.00
8.1.230.0140.00018.88
8.1.220.0130.00018.73
8.1.210.0080.00620.25
8.1.200.0120.00318.39
8.1.190.0110.00418.75
8.1.180.0150.00018.68
8.1.170.0030.01018.69
8.1.160.0140.00018.90
8.1.150.0070.00720.88
8.1.140.0140.00018.72
8.1.130.0090.00618.79
8.1.120.0080.00418.84
8.1.110.0060.00620.02
8.1.100.0120.00318.78
8.1.90.0100.00318.80
8.1.80.0080.00618.89
8.1.70.0080.00418.88
8.1.60.0130.00318.89
8.1.50.0160.00018.91
8.1.40.0100.00319.04
8.1.30.0080.00419.39
8.1.20.0130.00319.07
8.1.10.0140.00018.97
8.1.00.0080.00418.88
8.0.300.0130.00318.06
8.0.290.0100.00618.09
8.0.280.0070.00718.24
8.0.270.0040.01218.06
8.0.260.0070.00318.78
8.0.250.0130.00318.14
8.0.240.0050.00918.29
8.0.230.0060.00618.56
8.0.220.0150.00018.19
8.0.210.0100.00318.06
8.0.200.0110.00418.13
8.0.190.0060.00618.52
8.0.180.0130.00018.21
8.0.170.0130.00318.44
8.0.160.0140.00018.19
8.0.150.0080.00818.13
8.0.140.0150.00718.05
8.0.130.0100.00218.58
8.0.120.0100.00718.13
8.0.110.0210.00318.82
8.0.100.0090.00918.16
8.0.90.0080.00818.02
8.0.80.0130.00318.11
8.0.70.0260.00018.18
8.0.60.0140.01118.59
8.0.50.0150.00918.08
8.0.30.0130.00018.77
8.0.20.0170.00618.27
8.0.10.0250.00318.27

preferences:
32.38 ms | 403 KiB | 5 Q