3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<a href="www.website.fr/123/">*****</a>'; $doc = new DOMDocument(); $doc->loadHTML($html); $xpath = new DOMXPath($doc); if (count($xpath->query("//a[contains(@href, 'website.fr/')]"))) echo "found"; else echo "not found";

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.00624.33
8.4.110.0120.00720.74
8.4.100.0130.00819.32
8.4.90.0150.00521.11
8.4.80.0060.00219.95
8.4.70.0120.00818.21
8.4.60.0100.01024.39
8.4.50.0100.01022.82
8.4.40.0160.00319.56
8.4.30.0070.01118.25
8.4.20.0130.00720.82
8.4.10.0030.01319.70
8.3.250.0040.00519.11
8.3.240.0090.00817.67
8.3.230.0130.00716.82
8.3.220.0130.00619.32
8.3.210.0120.00818.49
8.3.200.0060.00217.00
8.3.190.0110.00816.65
8.3.180.0080.00916.71
8.3.170.0060.01016.60
8.3.160.0030.00717.27
8.3.150.0090.00617.54
8.3.140.0120.00616.85
8.3.130.0050.00318.52
8.3.120.0100.01021.17
8.3.110.0070.00720.94
8.3.100.0100.01016.76
8.3.90.0070.00018.83
8.3.80.0050.00518.68
8.3.70.0110.00718.68
8.3.60.0090.00918.80
8.3.50.0090.00817.64
8.3.40.0120.00319.02
8.3.30.0090.00618.85
8.3.20.0080.00022.07
8.3.10.0040.00420.47
8.3.00.0040.00719.58
8.2.290.0070.00720.80
8.2.280.0130.00618.67
8.2.270.0070.00717.34
8.2.260.0120.00617.03
8.2.250.0050.00317.31
8.2.240.0180.00419.29
8.2.230.0120.00322.58
8.2.220.0030.00624.06
8.2.210.0030.01026.77
8.2.200.0060.00318.79
8.2.190.0040.01518.70
8.2.180.0090.00916.63
8.2.170.0140.00722.96
8.2.160.0070.00720.77
8.2.150.0050.00224.18
8.2.140.0040.00424.66
8.2.130.0000.00726.16
8.2.120.0040.00421.32
8.2.110.0030.00620.98
8.2.100.0040.00718.28
8.2.90.0060.00318.26
8.2.80.0000.00818.18
8.2.70.0080.00018.30
8.2.60.0060.00318.47
8.2.50.0060.00318.10
8.2.40.0050.00319.76
8.2.30.0070.00019.58
8.2.20.0000.00718.27
8.2.10.0050.00219.88
8.2.00.0000.00818.30
8.1.330.0090.00922.14
8.1.320.0110.00816.42
8.1.310.0050.00516.80
8.1.300.0090.00916.70
8.1.290.0060.00318.88
8.1.280.0070.00725.92
8.1.270.0050.00320.67
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0110.00623.05
8.1.230.0080.00421.34
8.1.220.0100.00018.16
8.1.210.0030.00618.98
8.1.200.0060.00317.60
8.1.190.0050.00317.60
8.1.180.0040.00418.10
8.1.170.0080.00018.82
8.1.160.0040.00419.11
8.1.150.0040.00419.17
8.1.140.0000.00719.32
8.1.130.0030.00317.79
8.1.120.0070.00017.74
8.1.110.0050.00317.85
8.1.100.0000.00717.70
8.1.90.0050.00317.81
8.1.80.0070.00017.70
8.1.70.0000.00717.81
8.1.60.0040.00417.95
8.1.50.0030.00617.90
8.1.40.0040.00417.79
8.1.30.0040.00417.96
8.1.20.0000.00917.81
8.1.10.0100.00317.82
8.1.00.0030.00517.80
8.0.300.0000.00719.98
8.0.290.0040.00417.13
8.0.280.0030.00518.65
8.0.270.0040.00417.08
8.0.260.0040.00417.09
8.0.250.0030.00317.23
8.0.240.0000.00717.18
8.0.230.0070.00017.21
8.0.220.0070.00017.06
8.0.210.0000.00817.15
8.0.200.0030.00317.10
8.0.190.0000.00817.13
8.0.180.0060.00317.13
8.0.170.0040.00417.23
8.0.160.0030.00517.23
8.0.150.0040.00417.22
8.0.140.0000.00717.13
8.0.130.0000.00513.64
8.0.120.0050.00217.26
8.0.110.0070.00017.15
8.0.100.0040.00417.23
8.0.90.0070.00017.15
8.0.80.0090.00917.18
8.0.70.0000.00717.16
8.0.60.0000.00717.04
8.0.50.0050.00317.16
8.0.30.0120.00817.36
8.0.20.0120.00617.31
8.0.10.0000.00717.43
8.0.00.0090.00917.07
7.4.330.0050.00015.55
7.4.320.0070.00016.92
7.4.300.0070.00016.89
7.4.290.0040.00416.96
7.4.280.0080.00016.88
7.4.270.0000.00816.89
7.4.260.0030.00516.79
7.4.250.0000.00816.87
7.4.240.0040.00416.97
7.4.230.0040.00416.94
7.4.220.0070.00017.04
7.4.210.0110.00816.93
7.4.200.0040.00416.71
7.4.160.0090.00916.86
7.4.140.0130.00317.86
7.4.130.0130.01016.90
7.4.120.0070.01016.72
7.4.110.0130.00616.88
7.4.100.0090.00916.86
7.4.90.0130.00416.59
7.4.80.0140.00919.39
7.4.70.0110.00716.73
7.4.60.0030.01316.79
7.4.50.0100.00716.87
7.4.40.0090.00916.77
7.4.00.0080.00715.02
7.3.330.0000.00613.34
7.3.320.0000.00613.20
7.3.310.0040.00416.31
7.3.300.0040.00416.61
7.3.290.0030.00316.45
7.3.280.0100.00916.50
7.3.260.0060.01516.52
7.3.240.0090.00916.69
7.3.230.0100.00716.55
7.3.210.0110.01116.40
7.3.200.0040.01816.64
7.3.190.0070.01016.75
7.3.180.0100.00516.54
7.3.170.0130.00316.51
7.3.160.0060.00916.57
7.3.120.0090.00914.76
7.3.110.0110.00314.68
7.3.100.0060.00914.63
7.3.90.0030.01415.00
7.3.80.0000.01615.00
7.3.70.0100.00315.02
7.3.60.0030.01614.84
7.3.50.0060.01314.89
7.3.40.0100.00315.02
7.3.30.0070.00414.69
7.3.20.0590.00815.54
7.3.10.0270.01015.72
7.3.00.0300.00515.83
7.2.330.0110.00717.07
7.2.320.0090.01017.14
7.2.310.0060.01116.83
7.2.300.0090.01216.86
7.2.290.0100.01417.12
7.2.250.0120.00614.96
7.2.240.0070.01015.31
7.2.230.0030.01315.21
7.2.220.0030.01015.32
7.2.210.0100.00315.24
7.2.200.0040.00715.34
7.2.190.0000.01315.16
7.2.180.0030.01015.07
7.2.170.0030.00615.20
7.2.150.0450.00315.14
7.2.140.0500.01815.09
7.2.130.0390.01114.98
7.2.120.0450.01015.25
7.2.110.0520.00715.29
7.2.100.0500.00315.26
7.2.90.0360.00715.06
7.2.80.0550.00715.07
7.2.70.0520.00315.10
7.2.60.0450.00614.86
7.2.50.0490.00615.31
7.2.40.0580.00315.15
7.2.30.0480.00015.14
7.2.20.0410.01015.15
7.2.10.0480.01015.24
7.2.00.0470.01315.16
7.1.330.0000.01315.86
7.1.320.0040.00415.87
7.1.310.0030.01015.91
7.1.300.0070.00715.88
7.1.290.0070.00715.71
7.1.280.0070.00816.07
7.1.270.0080.00415.89
7.1.260.0040.01115.82
7.1.250.0580.00313.97

preferences:
26.74 ms | 403 KiB | 5 Q