3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadHtml(' <tr class="ipl-zebra-list__item"> <td class="ipl-zebra-list__label">Official Sites</td> <td> <ul class="ipl-inline-list"> <li class="ipl-inline-list__item"> <a href="https://www.indiegogo.com/projects/super-troopers-2">IndieGoGo page</a> </li> <li class="ipl-inline-list__item"> <a href="https://www.facebook.com/SuperTroopersMovie/">Official site</a> </li> </ul> </td> </tr> ', LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD); $xpath = new DOMXPath($dom); $arr['sites1'] = []; foreach ($xpath->query("//li[@class=\"ipl-inline-list__item\"]/a") as $link) { $href = $link->getAttribute('href'); $arr['sites1'][] = $href; } print_r($arr['sites1']);

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.0100.01018.83
8.4.120.0130.00824.26
8.4.110.0090.01022.50
8.4.100.0120.00818.19
8.4.90.0130.00718.14
8.4.80.0120.00618.25
8.4.70.0100.01118.34
8.4.60.0040.00518.36
8.4.50.0090.00820.86
8.4.40.0060.01018.11
8.4.30.0060.01520.03
8.4.20.0040.01519.75
8.4.10.0120.00618.22
8.3.250.0060.00319.18
8.3.240.0140.00617.74
8.3.230.0090.00816.84
8.3.220.0060.00917.55
8.3.210.0050.00417.12
8.3.200.0040.00416.93
8.3.190.0130.00617.17
8.3.180.0100.00817.01
8.3.170.0100.01019.20
8.3.160.0040.01419.30
8.3.150.0130.00621.58
8.3.140.0030.00516.90
8.3.130.0160.00318.80
8.3.120.0060.00319.59
8.3.110.0070.00320.94
8.3.100.0140.00617.04
8.3.90.0000.00826.77
8.3.80.0090.00016.75
8.3.70.0120.00916.87
8.3.60.0070.01117.00
8.3.50.0090.00416.98
8.3.40.0100.00718.77
8.3.30.0060.01219.09
8.3.20.0070.00021.98
8.3.10.0040.00423.75
8.3.00.0080.00018.05
8.2.290.0120.00620.91
8.2.280.0110.00817.38
8.2.270.0130.00617.07
8.2.260.0040.00419.29
8.2.250.0080.00017.34
8.2.240.0150.00019.38
8.2.230.0030.00622.58
8.2.220.0080.00424.06
8.2.210.0040.00426.77
8.2.200.0030.00617.13
8.2.190.0150.00316.72
8.2.180.0150.00425.92
8.2.170.0070.01119.24
8.2.160.0140.00022.96
8.2.150.0090.00925.66
8.2.140.0030.00624.66
8.2.130.0030.00526.16
8.2.120.0040.00420.35
8.2.110.0040.00422.62
8.2.100.0090.00318.16
8.2.90.0040.00418.28
8.2.80.0030.00518.47
8.2.70.0050.00318.30
8.2.60.0080.00017.88
8.2.50.0000.00818.41
8.2.40.0000.00822.73
8.2.30.0030.00619.95
8.2.20.0000.00718.34
8.2.10.0040.00418.01
8.2.00.0080.00018.52
8.1.330.0100.00822.62
8.1.320.0110.00916.75
8.1.310.0050.00317.12
8.1.300.0030.00620.56
8.1.290.0100.00030.84
8.1.280.0100.01325.92
8.1.270.0050.00324.08
8.1.260.0050.00326.35
8.1.250.0080.00028.09
8.1.240.0090.00024.11
8.1.230.0060.00624.04
8.1.220.0050.00317.91
8.1.210.0000.00818.85
8.1.200.0000.00917.73
8.1.190.0080.00017.60
8.1.180.0030.00518.10
8.1.170.0050.00319.32
8.1.160.0000.00719.23
8.1.150.0030.00319.32
8.1.140.0070.00018.20
8.1.130.0000.00719.35
8.1.120.0060.00317.65
8.1.110.0050.00217.84
8.1.100.0080.00017.70
8.1.90.0080.00017.78
8.1.80.0050.00317.85
8.1.70.0000.00717.80
8.1.60.0030.00617.91
8.1.50.0000.00917.77
8.1.40.0080.00017.81
8.1.30.0040.00417.90
8.1.20.0000.00717.89
8.1.10.0000.00917.96
8.1.00.0040.00417.87
8.0.300.0040.00420.54
8.0.290.0050.00316.86
8.0.280.0030.00318.82
8.0.270.0040.00417.55
8.0.260.0030.00318.73
8.0.250.0030.00317.36
8.0.240.0080.00017.21
8.0.230.0000.00717.35
8.0.220.0000.00817.18
8.0.210.0080.00017.29
8.0.200.0000.00717.21
8.0.190.0040.00417.30
8.0.180.0040.00417.27
8.0.170.0040.00417.19
8.0.160.0000.00717.25
8.0.150.0020.00517.28
8.0.140.0040.00417.20
8.0.130.0050.00013.69
8.0.120.0000.00817.10
8.0.110.0030.00517.16
8.0.100.0000.00717.04
8.0.90.0000.00817.38
8.0.80.0130.00317.27
8.0.70.0000.00717.14
8.0.60.0000.00817.11
8.0.50.0000.00717.15
8.0.30.0080.01217.24
8.0.20.0110.00917.64
8.0.10.0080.00017.50
8.0.00.0120.00917.00
7.4.330.0030.00315.55
7.4.320.0030.00316.86
7.4.300.0060.00016.84
7.4.290.0070.00016.79
7.4.280.0080.00016.73
7.4.270.0030.00316.85
7.4.260.0070.00016.70
7.4.250.0000.00716.93
7.4.240.0030.00516.96
7.4.230.0000.00816.88
7.4.220.0050.00316.96
7.4.210.0070.00816.88
7.4.200.0030.00416.94
7.4.160.0080.01016.82
7.4.140.0120.00717.86
7.4.130.0160.01016.91
7.4.120.0100.00916.81
7.4.110.0140.00316.71
7.4.100.0140.01016.77
7.4.90.0120.00616.84
7.4.80.0150.00419.39
7.4.70.0120.00616.75
7.4.60.0090.00916.93
7.4.50.0140.00417.01
7.4.40.0060.01016.86
7.4.00.0040.01415.36
7.3.330.0050.00013.42
7.3.320.0060.00013.59
7.3.310.0030.00316.72
7.3.300.0050.00316.74
7.3.290.0070.00016.54
7.3.280.0090.00616.74
7.3.260.0130.00616.75
7.3.240.0080.01016.79
7.3.230.0100.01016.59
7.3.210.0100.00716.77
7.3.200.0120.00316.86
7.3.190.0040.01116.65
7.3.180.0100.00716.99
7.3.170.0160.00616.85
7.3.160.0070.01016.64
7.2.330.0110.00816.96
7.2.320.0060.01217.00
7.2.310.0070.01117.02
7.2.300.0110.00516.83
7.2.290.0140.00916.95
7.2.60.0160.00017.01
7.2.30.0120.01318.08
7.2.20.0120.01718.11
7.2.10.0110.01017.80
7.2.00.0110.01517.64
7.1.200.0040.01415.85
7.1.150.0070.01116.89
7.1.140.0090.01016.64
7.1.130.0090.01117.05
7.1.120.0100.01417.13
7.1.110.0120.01216.44
7.1.100.0090.01516.45
7.1.90.0200.01016.26
7.1.80.0100.00816.41
7.1.70.0090.00815.40
7.1.60.0960.01233.28
7.1.50.0260.01133.13
7.1.40.0230.01532.88
7.1.30.0310.01832.77
7.1.20.0290.01232.89
7.1.10.0120.01514.98
7.1.00.0120.01115.16

preferences:
28.65 ms | 403 KiB | 5 Q