3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<example>YOUR XML NEEDS TO GO HERE</example>'; $xmlWSIN = simplexml_load_string($xml); $xmlArrayCount = count($xmlWSIN); $counter = 0; while ($counter < $xmlArrayCount - 1) { foreach ($xmlWSIN->XmlNode->$counter->adoptableSearch as $output) { echo $output->Name, "<br>\n"; $counter++; } }

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.0100.00819.73
8.5.20.0040.00420.34
8.5.10.0060.01220.50
8.5.00.0120.00820.36
8.4.180.0100.01120.75
8.4.170.0100.01320.59
8.4.160.0100.01124.15
8.4.150.0080.00417.79
8.4.140.0140.00817.60
8.4.130.0130.00718.05
8.4.120.0040.00520.66
8.4.110.0120.00919.03
8.4.100.0110.01117.73
8.4.90.0060.00420.65
8.4.80.0090.01118.98
8.4.70.0100.00619.18
8.4.60.0150.00518.67
8.4.50.0060.00220.37
8.4.40.0090.01024.32
8.4.30.0060.00319.33
8.4.20.0070.01420.72
8.4.10.0080.00824.11
8.3.300.0080.01120.98
8.3.290.0040.00521.11
8.3.280.0090.01118.54
8.3.270.0140.00616.74
8.3.260.0130.00716.77
8.3.250.0140.00417.30
8.3.240.0130.00716.70
8.3.230.0100.00916.61
8.3.220.0050.00219.22
8.3.210.0080.00816.93
8.3.200.0050.00616.70
8.3.190.0060.00217.61
8.3.180.0120.00819.02
8.3.170.0130.00317.00
8.3.160.0070.01019.06
8.3.150.0070.01119.07
8.3.140.0120.00620.76
8.3.130.0030.01718.42
8.3.120.0000.00820.86
8.3.110.0080.00020.94
8.3.100.0080.00024.06
8.3.90.0030.00626.77
8.3.80.0060.00317.97
8.3.70.0100.01018.57
8.3.60.0140.00718.55
8.3.50.0070.00716.69
8.3.40.0000.01422.18
8.3.30.0090.00918.90
8.3.20.0040.00424.18
8.3.10.0040.00424.66
8.3.00.0050.00326.16
8.2.300.0100.00924.05
8.2.290.0130.00618.77
8.2.280.0040.00418.46
8.2.270.0110.00822.21
8.2.260.0080.00016.58
8.2.250.0030.00616.80
8.2.240.0030.00617.46
8.2.230.0000.00922.58
8.2.220.0000.00937.54
8.2.210.0040.01126.77
8.2.200.0090.00016.88
8.2.190.0110.00416.58
8.2.180.0100.00616.88
8.2.170.0100.01019.05
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0090.00619.49
8.2.110.0110.00021.19
8.2.100.0080.00417.91
8.2.90.0050.00317.97
8.2.80.0060.00620.07
8.2.70.0050.00317.50
8.2.60.0040.00417.63
8.2.50.0040.00417.75
8.2.40.0050.00317.88
8.2.30.0070.00317.85
8.2.20.0070.00717.79
8.2.10.0130.00917.98
8.2.00.0180.00517.94
8.1.340.0180.00521.92
8.1.330.0160.00416.30
8.1.320.0150.00518.20
8.1.310.0040.01117.08
8.1.300.0140.00418.72
8.1.290.0060.00330.84
8.1.280.0150.00725.92
8.1.270.0040.00424.66
8.1.260.0050.00326.35
8.1.250.0040.00428.09
8.1.240.0060.00322.72
8.1.230.0040.00721.04
8.1.220.0030.00517.91
8.1.210.0050.00318.90
8.1.200.0080.00017.48
8.1.190.0060.00317.48
8.1.180.0060.00318.10
8.1.170.0070.00017.62
8.1.160.0080.00319.34
8.1.150.0120.00517.67
8.1.140.0130.00217.61
8.1.130.0000.01217.57
8.1.120.0060.00319.38
8.1.110.0060.00319.49
8.1.100.0060.00319.50
8.1.90.0100.00717.79
8.1.80.0120.00617.61
8.1.70.0110.00717.74
8.1.60.0170.00317.80
8.1.50.0140.00517.73
8.1.40.0070.00717.88
8.1.30.0140.00317.70
8.1.20.0110.00017.88
8.1.10.0070.00319.34
8.1.00.0030.00719.37
8.0.300.0040.00420.16
8.0.290.0040.00416.88
8.0.280.0070.00218.74
8.0.270.0030.00618.63
8.0.260.0030.00618.62
8.0.250.0000.00918.82
8.0.240.0040.00418.69
8.0.230.0030.00618.87
8.0.220.0070.00716.92
8.0.210.0130.00316.86
8.0.200.0110.00316.92
8.0.190.0110.00217.03
8.0.180.0130.00016.83
8.0.170.0100.00316.96
8.0.160.0040.00716.98
8.0.150.0140.00017.03
8.0.140.0110.00517.01
8.0.130.0100.00616.97
8.0.120.0170.00016.96
8.0.110.0100.00517.08
8.0.100.0110.00216.80
8.0.90.0050.00917.09
8.0.80.0110.00016.86
8.0.70.0140.00017.02
8.0.60.0130.00317.02
8.0.50.0160.00016.91
8.0.30.0090.00916.93
8.0.20.0080.00417.08
8.0.10.0120.00016.99

preferences:
89.97 ms | 1089 KiB | 5 Q