3v4l.org

run code in 300+ PHP versions simultaneously
<?php # https://stackoverflow.com/a/79374798/367456 use DOM\HTMLDocument as DOMDocument; $html = '<p><a href="blahblah">blahblah</a></p>'; $doc = DOMDocument::createFromString($html, LIBXML_HTML_NOIMPLIED); $test = $doc->querySelector('a'); echo $test->getAttribute('href');

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.120.0140.00820.64
8.4.110.0110.00820.74
8.4.100.0180.01219.34
8.4.90.0210.00920.27
8.4.80.0210.01020.74
8.4.70.0080.00918.30
8.4.60.0260.00918.54
8.4.50.0230.00818.65
8.4.40.0250.01017.99
8.4.30.0270.00918.58
8.4.20.0280.00919.21
8.4.10.0340.00918.34
8.3.250.0100.00918.67
8.3.240.0070.00916.73
8.3.230.0120.00716.43
8.3.220.0090.00918.73
8.3.210.0120.00616.55
8.3.200.0250.00416.47
8.3.190.0230.01116.64
8.3.180.0270.00817.63
8.3.170.0190.00416.84
8.3.160.0100.01116.58
8.3.150.0200.00417.31
8.3.140.0380.00816.55
8.3.130.0320.00816.21
8.3.120.0330.00816.35
8.3.110.0300.01216.50
8.3.100.0360.01216.39
8.3.90.0440.00916.20
8.3.80.0370.00716.34
8.3.70.0520.00816.56
8.3.60.0340.01216.41
8.3.50.0250.00616.40
8.3.40.0300.01017.42
8.3.30.0320.00817.56
8.3.20.0310.01017.51
8.3.10.0300.00717.45
8.3.00.0240.01217.48
8.2.290.0060.00320.69
8.2.280.0190.01017.57
8.2.270.0210.00816.87
8.2.260.0210.00917.70
8.2.250.0320.00716.57
8.2.240.0330.00616.76
8.2.230.0370.00616.70
8.2.220.0340.00916.45
8.2.210.0280.01216.58
8.2.200.0340.00516.63
8.2.190.0280.01116.55
8.2.180.0330.00716.44
8.2.170.0420.00817.58
8.2.160.0280.01117.45
8.2.150.0290.00517.71
8.2.140.0270.00617.49
8.2.130.0290.00817.69
8.2.120.0270.00817.46
8.2.110.0140.00417.58
8.2.100.0360.01017.53
8.2.90.0280.01317.50
8.2.80.0310.01117.46
8.2.70.0430.01217.22
8.2.60.0320.00717.43
8.2.50.0200.00417.45
8.2.40.0310.00917.20
8.2.30.0290.01117.35
8.2.20.0290.00917.61
8.2.10.0290.01017.50
8.2.00.0300.00817.60

preferences:
28.2 ms | 403 KiB | 5 Q