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'); foreach ($responses as $item) { echo $item->index, PHP_EOL; echo $item->statusCode, PHP_EOL; }

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.130.0060.00618.03
8.4.120.0150.00722.86
8.4.110.0050.00422.93
8.4.100.0130.00720.93
8.4.90.0060.00520.97
8.4.80.0080.00522.98
8.4.70.0050.00418.55
8.4.60.0060.00519.25
8.4.50.0100.00919.13
8.4.40.0090.00918.00
8.4.30.0140.00719.05
8.4.20.0140.00720.85
8.4.10.0090.00019.71
8.3.260.0100.00916.82
8.3.250.0050.00419.12
8.3.240.0120.00816.85
8.3.230.0120.00516.88
8.3.220.0040.00517.59
8.3.210.0030.00518.96
8.3.200.0040.00517.19
8.3.190.0080.00717.27
8.3.180.0100.00917.04
8.3.170.0100.00719.29
8.3.160.0150.00318.70
8.3.150.0130.00716.93
8.3.140.0150.00421.09
8.3.130.0050.00318.71
8.3.120.0030.00621.14
8.3.110.0110.00020.94
8.3.100.0000.00824.06
8.3.90.0120.00426.77
8.3.80.0000.00918.93
8.3.70.0110.00418.58
8.3.60.0120.00918.79
8.3.50.0120.00618.66
8.3.40.0140.00020.32
8.3.30.0060.00922.15
8.3.20.0080.00024.18
8.3.10.0030.00524.66
8.3.00.0060.00326.16
8.2.290.0120.00720.71
8.2.280.0110.01018.73
8.2.270.0120.00617.61
8.2.260.0190.00016.97
8.2.250.0080.00018.79
8.2.240.0110.00717.63
8.2.230.0060.00322.58
8.2.220.0040.00437.54
8.2.210.0120.00326.77
8.2.200.0040.00718.79
8.2.190.0140.00416.60
8.2.180.0070.01416.88
8.2.170.0120.00319.24
8.2.160.0060.00622.96
8.2.150.0090.00325.66
8.2.140.0030.00624.66
8.2.130.0040.00426.16
8.2.120.0040.00419.86
8.2.110.0080.00320.89
8.2.100.0090.00019.58
8.2.90.0090.00019.08
8.2.80.0070.00319.00
8.2.70.0110.00019.05
8.2.60.0070.00319.09
8.2.50.0070.00320.22
8.2.40.0100.00019.06
8.2.30.0100.00018.99
8.2.20.0000.00919.54
8.2.10.0030.00619.28
8.2.00.0040.00719.59
8.1.330.0100.00622.47
8.1.320.0110.00916.72
8.1.310.0040.00417.20
8.1.300.0030.00618.08
8.1.290.0060.00330.84
8.1.280.0000.01825.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0060.00318.88
8.1.230.0100.00018.87
8.1.220.0100.00018.99
8.1.210.0060.00620.17
8.1.200.0070.00418.73
8.1.190.0090.00318.84
8.1.180.0060.00318.71
8.1.170.0070.00418.86
8.1.160.0060.00319.17
8.1.150.0060.00320.87
8.1.140.0030.00618.93
8.1.130.0070.00318.90
8.1.120.0100.00018.99
8.1.110.0060.00320.11
8.1.100.0070.00318.94
8.1.90.0070.00318.84
8.1.80.0050.00518.77
8.1.70.0060.00320.94
8.1.60.0080.00418.96
8.1.50.0030.00718.89
8.1.40.0000.00919.20
8.1.30.0060.00319.25
8.1.20.0040.00819.14
8.1.10.0040.00718.87
8.1.00.0060.00318.97
8.0.300.0030.00618.22
8.0.290.0090.00018.18
8.0.280.0090.00018.36
8.0.270.0080.00018.40
8.0.260.0030.00618.88
8.0.250.0000.01018.18
8.0.240.0030.00618.23
8.0.230.0060.00318.84
8.0.220.0100.00018.20
8.0.210.0000.00818.32
8.0.200.0040.00418.38
8.0.190.0040.00418.77
8.0.180.0040.00418.51
8.0.170.0050.00318.52
8.0.160.0050.00318.43
8.0.150.0000.00818.38
8.0.140.0040.00418.21
8.0.130.0040.00418.63
8.0.120.0000.00818.19
8.0.110.0070.00018.80
8.0.100.0040.00418.38
8.0.90.0040.00418.11
8.0.80.0080.00018.25
8.0.70.0040.00418.33
8.0.60.0040.00418.77
8.0.50.0050.00320.25
8.0.30.0000.00720.55
8.0.20.0040.00420.27
8.0.10.0080.00020.23

preferences:
27.97 ms | 403 KiB | 5 Q