3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<< HTML <!doctype html> <html> <head> <link rel="shortcut icon" href="https://google.com"/> </head> <body></body> </html> HTML; $doc = new DOMDocument; $doc->loadHtml($html); $xpath = new DomXPath($doc); echo $xpath->query('[@rel="shortcut icon"]')->item(0)->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.3.60.0180.00418.48
8.3.50.0120.00618.44
8.3.40.0140.00019.17
8.3.30.0070.00719.13
8.3.20.0050.00322.26
8.3.10.0040.00422.29
8.3.00.0040.00419.93
8.2.180.0110.01118.66
8.2.170.0100.01022.96
8.2.160.0140.00020.77
8.2.150.0050.00224.18
8.2.140.0050.00324.66
8.2.130.0040.00421.50
8.2.120.0040.00426.35
8.2.110.0030.00621.26
8.2.100.0070.00418.09
8.2.90.0040.00418.17
8.2.80.0030.00618.29
8.2.70.0030.00618.18
8.2.60.0040.00418.28
8.2.50.0080.00018.10
8.2.40.0040.00420.93
8.2.30.0040.00419.62
8.2.20.0000.00818.37
8.2.10.0050.00318.31
8.2.00.0040.00418.40
8.1.280.0150.00325.92
8.1.270.0040.00422.32
8.1.260.0060.00326.35
8.1.250.0030.00528.09
8.1.240.0090.00022.52
8.1.230.0070.00422.99
8.1.220.0000.00817.91
8.1.210.0000.00818.77
8.1.200.0070.00317.73
8.1.190.0000.00817.38
8.1.180.0000.00818.10
8.1.170.0040.00418.79
8.1.160.0080.00019.27
8.1.150.0000.00721.17
8.1.140.0000.00718.04
8.1.130.0100.00019.41
8.1.120.0000.00817.76
8.1.110.0080.00017.72
8.1.100.0060.00317.74
8.1.90.0000.00717.68
8.1.80.0030.00617.81
8.1.70.0000.00717.79
8.1.60.0060.00617.91
8.1.50.0030.00617.78
8.1.40.0030.00617.91
8.1.30.0080.00017.96
8.1.20.0000.00917.95
8.1.10.0040.00417.92
8.1.00.0040.00417.74
8.0.300.0040.00420.38
8.0.290.0050.00317.25
8.0.280.0000.00718.76
8.0.270.0080.00017.74
8.0.260.0000.00719.45
8.0.250.0070.00017.31
8.0.240.0040.00417.14
8.0.230.0030.00717.21
8.0.220.0070.00017.23
8.0.210.0070.00017.08
8.0.200.0030.00317.22
8.0.190.0040.00417.30
8.0.180.0040.00417.31
8.0.170.0090.00017.28
8.0.160.0040.00417.25
8.0.150.0040.00417.19
8.0.140.0070.00017.18
8.0.130.0060.00013.61
8.0.120.0070.00017.18
8.0.110.0040.00417.07
8.0.100.0000.00717.15
8.0.90.0040.00417.29
8.0.80.0140.00717.14
8.0.70.0000.00717.25
8.0.60.0040.00417.20
8.0.50.0070.00017.14
8.0.30.0100.00817.54
8.0.20.0130.01117.40
8.0.10.0070.00017.19
8.0.00.0090.00917.15
7.4.330.0030.00315.55
7.4.320.0000.00616.90
7.4.300.0000.00716.98
7.4.290.0030.00316.83
7.4.280.0030.00616.84
7.4.270.0000.00716.86
7.4.260.0070.00016.99
7.4.250.0030.00316.80
7.4.240.0030.00317.00
7.4.230.0000.00817.02
7.4.220.0030.00317.09
7.4.210.0080.01116.85
7.4.200.0030.00516.96
7.4.160.0100.00616.81
7.4.140.0100.00917.86
7.4.130.0080.00816.91
7.4.120.0110.00816.84
7.4.110.0140.00416.59
7.4.100.0110.00716.84
7.4.90.0110.00716.83
7.4.80.0160.00619.39
7.4.70.0150.00916.75
7.4.60.0070.01016.76
7.4.50.0040.01416.92
7.4.40.0090.01516.83
7.4.00.0070.01015.32
7.3.330.0030.00313.41
7.3.320.0000.00513.54
7.3.310.0050.00216.63
7.3.300.0070.00016.58
7.3.290.0030.00316.56
7.3.280.0090.00616.67
7.3.260.0120.00616.63
7.3.240.0090.01116.72
7.3.230.0090.00916.54
7.3.210.0190.00416.62
7.3.200.0130.00816.69
7.3.190.0110.00816.70
7.3.180.0120.00916.92
7.3.170.0170.00316.72
7.3.160.0120.00416.86
7.2.330.0090.01316.95
7.2.320.0150.00616.87
7.2.310.0080.00916.95
7.2.300.0090.00916.72
7.2.290.0040.01416.76
7.2.60.0040.01116.75
7.2.40.0450.01418.21
7.2.30.0580.01317.73
7.2.20.0710.01017.65
7.2.10.0810.01318.07
7.2.00.0530.00917.70
7.1.200.0100.00315.90
7.1.160.0600.00916.63
7.1.150.0780.01716.17
7.1.140.0490.01016.68
7.1.130.0590.00716.41
7.1.120.0440.00716.86
7.1.110.0440.00916.21
7.1.100.0470.00816.26
7.1.90.0400.01016.20
7.1.80.0710.01216.21
7.1.70.0820.01315.21
7.1.60.0890.01833.39
7.1.50.0960.01432.95
7.1.40.0870.01132.77
7.1.30.0940.01432.71
7.1.20.1730.01732.81
7.1.10.0650.01214.87
7.1.00.0860.01215.03

preferences:
57.14 ms | 400 KiB | 5 Q