3v4l.org

run code in 300+ PHP versions simultaneously
<?php use Dom\XMLDocument; $xml = XMLDocument::createFromString(<<<EOXML <?xml version="1.0" encoding="UTF-8"?> <note xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="note-nonamespace1.xsd http://localhost/note-nonamespace2.xsd" xsi:schemaLocation="http://www.happy-helpers1.com note-namespace1.xsd http://www.happy-helpers2.com http://localhost/note-namespace2.xsd"> </note> EOXML ); $documentElement = $xml->documentElement; $attributes = $documentElement->attributes; $schemaLocation = $attributes->getNamedItemNS('http://www.w3.org/2001/XMLSchema-instance', 'schemaLocation'); var_dump(explode(' ', $schemaLocation->textContent ?? ''));

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.0400.01017.73
8.4.120.0350.01417.84
8.4.110.0380.00817.73
8.4.100.0420.00618.01
8.4.90.0440.00717.64
8.4.80.0440.00717.67
8.4.70.0370.01417.61
8.4.60.0440.00917.57
8.4.50.0210.00817.80
8.4.40.0280.00717.80
8.4.30.0230.00717.52
8.4.20.0420.00917.50
8.4.10.0310.00617.79
8.3.260.0260.00816.67
8.3.250.0370.00716.46
8.3.240.0290.00416.53
8.3.230.0400.00816.46
8.3.220.0230.00916.39
8.3.210.0460.00616.66
8.3.200.0350.00816.20
8.3.190.0210.00316.84
8.3.180.0200.00716.48
8.3.170.0190.00616.46
8.3.160.0260.00516.38
8.3.150.0190.00616.75
8.3.140.0220.00216.24
8.3.130.0150.00516.21
8.3.120.0160.00516.83
8.3.110.0160.00516.57
8.3.100.0180.00516.87
8.3.90.0300.00416.29
8.3.80.0310.00516.51
8.3.70.0410.00616.50
8.3.60.0460.00616.65
8.3.50.0410.01116.65
8.3.40.0420.00817.64
8.3.30.0320.01317.67
8.3.20.0340.01017.39
8.3.10.0300.01017.65
8.3.00.0420.01117.43
8.2.290.0300.00816.71
8.2.280.0240.00616.32
8.2.270.0150.00516.38
8.2.260.0310.01016.44
8.2.250.0350.00716.63
8.2.240.0320.01116.31
8.2.230.0350.00816.25
8.2.220.0270.00716.35
8.2.210.0370.00616.43
8.2.200.0240.01016.64
8.2.190.0350.00716.36
8.2.180.0380.00616.25
8.2.170.0460.00517.59
8.2.160.0320.00517.44
8.2.150.0370.00717.74
8.2.140.0330.01217.39
8.2.130.0350.01017.52
8.2.120.0370.00917.47
8.2.110.0380.00717.15
8.2.100.0400.00417.59
8.2.90.0340.00717.45
8.2.80.0350.00917.42
8.2.70.0340.00917.32
8.2.60.0330.00917.40
8.2.50.0350.00517.27
8.2.40.0170.00217.55
8.2.30.0290.01017.48
8.2.20.0350.00517.31
8.2.10.0330.00717.61
8.2.00.0320.00817.45

preferences:
33.24 ms | 403 KiB | 5 Q