3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <li style="opacity: 1;"> <a class="profile-link" href="CompanyProfile.aspx?PID=4813&amp;country=211&amp;practicearea=0&amp;pagenum=" title="1-844-Iran-Law">Amin Alemohammad</a> <!--<a class="profile-link" href="javascript:void(0)" title="1-844-Iran-Law">Amin Alemohammad</a>--> <img src="/Images/Uploaded/Photos/4813_1844IranLaw.png" style="max-width:140px; max-height:140px"> <div class="results-profile"> <h2>Amin Alemohammad</h2> <p><strong>Firm:</strong> 1-844-Iran-Law <br> <strong>Country:</strong> USA</p> <p class="blue"><strong>Practice Area:</strong> Iranian Desk</p> <ul> <li class="tel-icon" style="opacity: 1;">Tel: +1-202-465-8692</li> <li class="fax-icon" style="opacity: 1;">Fax: +1-202-776-0136</li> <li class="email-icon">Email: <a style="position:relative; z-index:9999;" href="mailto:amin@1844iranlaw.com">amin@1844iranlaw.com</a></li> </ul> </div><!-- results profile --> <img class="practice-logo" src="/Images/Uploaded/Logos/4813_1844IranLaw.png" style="max-width:185px; max-height:70px;"> <a class="results-btn contact-btn" href="CompanyProfile.aspx?PID=4813&amp;country=211&amp;practicearea=0&amp;pagenum=" title="View Full Profile">VIEW FULL PROFILE</a> <!--<a class="results-btn contact-btn" href="CompanyProfile.aspx?PID=4813&country=211&practicearea=0&pagenum=" title="1-844-Iran-Law">CONTACT</a>--> <a class="results-btn website-btn" href="http://www.1844iranlaw.com" title="www.1844iranlaw.com">VIEW WEBSITE</a> </li> HTML; $dom=new DOMDocument; //libxml_use_internal_errors(true); // for <li> warning suppress $dom->loadHTML($html); //libxml_clear_errors(); // for <li> warning suppress $xpath = new DOMXPath($dom); foreach ($xpath->evaluate("//a[@class='profile-link']") as $node) { parse_str(parse_url($node->getAttribute('href'), PHP_URL_QUERY), $output); $output['title'] = $node->getAttribute('title'); $output['text'] = $node->nodeValue; } var_export($output);

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.130.0160.00318.85
8.3.120.0080.00019.22
8.3.110.0030.00620.94
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0130.00017.13
8.3.70.0150.00316.88
8.3.60.0120.00618.63
8.3.50.0190.00418.10
8.3.40.0120.00319.08
8.3.30.0150.00419.29
8.3.20.0040.00422.13
8.3.10.0040.00423.83
8.3.00.0080.00023.90
8.2.250.0050.00316.94
8.2.240.0090.00019.64
8.2.230.0040.00422.58
8.2.220.0050.00537.54
8.2.210.0070.01026.77
8.2.200.0110.00018.54
8.2.190.0130.01016.88
8.2.180.0090.00625.92
8.2.170.0170.00719.41
8.2.160.0110.00322.96
8.2.150.0090.00025.66
8.2.140.0050.00324.66
8.2.130.0040.00421.55
8.2.120.0050.00326.35
8.2.110.0030.00721.62
8.2.100.0060.00618.09
8.2.90.0030.00618.40
8.2.80.0050.00318.65
8.2.70.0050.00318.54
8.2.60.0040.00418.18
8.2.50.0040.00418.47
8.2.40.0030.00621.39
8.2.30.0000.00919.69
8.2.20.0070.00018.50
8.2.10.0000.00818.44
8.2.00.0070.00318.40
8.1.300.0030.00618.38
8.1.290.0030.00730.84
8.1.280.0030.01325.92
8.1.270.0000.00824.35
8.1.260.0040.00426.35
8.1.250.0050.00528.09
8.1.240.0130.00321.14
8.1.230.0080.00321.34
8.1.220.0050.00318.16
8.1.210.0090.00019.09
8.1.200.0030.00617.85
8.1.190.0060.00317.60
8.1.180.0080.00018.10
8.1.170.0060.00319.02
8.1.160.0030.00519.26
8.1.150.0060.00321.09
8.1.140.0040.00417.94
8.1.130.0040.00417.79
8.1.120.0040.00417.87
8.1.110.0000.00717.73
8.1.100.0050.00517.84
8.1.90.0030.00517.85
8.1.80.0030.00717.77
8.1.70.0000.00717.84
8.1.60.0000.01017.99
8.1.50.0040.00617.87
8.1.40.0100.00717.93
8.1.30.0120.00418.07
8.1.20.0110.00417.95
8.1.10.0120.00417.90
8.1.00.0150.00217.83
8.0.300.0000.00720.24
8.0.290.0040.00417.25
8.0.280.0040.00418.74
8.0.270.0040.00417.59
8.0.260.0070.00017.32
8.0.250.0000.00717.30
8.0.240.0050.00517.32
8.0.230.0030.00317.29
8.0.220.0040.00717.34
8.0.210.0040.00417.38
8.0.200.0040.00417.37
8.0.190.0040.00417.34
8.0.180.0110.00417.25
8.0.170.0070.00917.29
8.0.160.0100.00617.32
8.0.150.0070.00817.20
8.0.140.0050.00917.23
8.0.130.0080.00515.50
8.0.120.0110.00217.29
8.0.110.0100.00317.26
8.0.100.0100.00417.27
8.0.90.0080.00617.23
8.0.80.0120.00517.26
8.0.70.0120.00117.29
8.0.60.0100.00217.29
8.0.50.0090.00517.23
8.0.30.0070.01117.47
8.0.20.0120.00717.37
8.0.10.0080.00217.33
8.0.00.0050.01017.20
7.4.330.0000.00515.55
7.4.320.0000.00716.71
7.4.300.0030.00317.02
7.4.290.0120.00416.96
7.4.280.0120.00316.92
7.4.270.0090.00416.87
7.4.260.0090.00616.92
7.4.250.0090.00516.82
7.4.240.0120.00216.95
7.4.230.0110.00416.90
7.4.220.0110.00316.85
7.4.210.0110.00716.99
7.4.200.0080.00616.73
7.4.190.0120.00917.01
7.4.180.0140.00616.98
7.4.160.0100.00716.92
7.4.150.0160.00316.70
7.4.140.0140.01317.67
7.4.130.0150.00416.73
7.4.120.0080.00916.92
7.4.110.0100.00816.78
7.4.100.0150.00416.86
7.4.90.0060.01516.90
7.4.80.0110.00718.07
7.4.70.0180.00316.87
7.4.60.0120.00616.89
7.4.50.0080.00916.63
7.4.40.0120.00716.85
7.4.30.0140.00616.77
7.4.20.0130.00516.77
7.4.10.0110.00816.78
7.4.00.0060.00816.02
7.3.330.0060.00115.07
7.3.320.0080.00515.07
7.3.310.0090.00316.54
7.3.300.0080.00616.71
7.3.290.0090.00316.61
7.3.280.0080.01016.72
7.3.270.0160.00316.64
7.3.260.0140.00516.71
7.3.250.0200.00016.74
7.3.240.0130.00616.76
7.3.230.0180.00216.74
7.3.220.0130.00716.53
7.3.210.0110.00816.77
7.3.200.0100.01016.80
7.3.190.0140.00516.65
7.3.180.0090.01216.75
7.3.170.0130.00516.70
7.3.160.0110.00616.69
7.3.150.0150.00316.46
7.3.140.0130.00616.68
7.3.130.0150.00316.56
7.3.120.0140.00516.40
7.3.110.0120.00816.61
7.3.100.0130.00516.34
7.3.90.0150.00416.93
7.3.80.0150.00416.73
7.3.70.0120.00616.49
7.3.60.0130.00516.51
7.3.50.0170.00216.84
7.3.40.0190.00016.79
7.3.30.0160.00316.66
7.3.20.0150.00416.88
7.3.10.0130.00616.68
7.3.00.0130.00416.77
7.2.340.0120.00716.82
7.2.330.0100.00916.85
7.2.320.0110.01016.83
7.2.310.0160.00316.83
7.2.300.0080.01116.82
7.2.290.0080.01317.00
7.2.280.0140.00616.74
7.2.270.0140.00516.56
7.2.260.0170.00316.86
7.2.250.0120.00616.72
7.2.240.0170.00316.80
7.2.230.0190.00016.84
7.2.220.0190.00016.88
7.2.210.0140.00516.73
7.2.200.0130.00816.93
7.2.190.0160.00316.84
7.2.180.0120.00616.84
7.2.170.0140.00517.03
7.2.160.0140.00517.06
7.2.150.0150.00516.89
7.2.140.0160.00317.04
7.2.130.0110.00517.03
7.2.120.0110.00817.06
7.2.110.0080.00616.92
7.2.100.0100.00617.11
7.2.90.0130.00517.09
7.2.80.0070.01117.03
7.2.70.0090.00916.95
7.2.60.0100.00916.99
7.2.50.0070.01016.88
7.2.40.0700.01117.37
7.2.30.0830.01117.32
7.2.20.0800.00817.36
7.2.10.0600.00817.34
7.2.00.0560.00817.47
7.1.330.0160.00315.92
7.1.320.0120.00616.08
7.1.310.0090.00916.08
7.1.300.0080.01115.91
7.1.290.0470.00317.79
7.1.280.0220.00417.65
7.1.270.0150.00417.59
7.1.260.0160.00317.58
7.1.250.0090.00716.77
7.1.240.0090.00816.88
7.1.230.0100.00616.68
7.1.220.0140.00516.67
7.1.210.0160.00216.70
7.1.200.0130.00516.50
7.1.190.0120.00516.79
7.1.180.0130.00616.78
7.1.170.0160.00616.80
7.1.160.0910.00616.88
7.1.150.0920.01016.72
7.1.140.0650.00716.52
7.1.130.0540.01016.78
7.1.120.0490.00816.93
7.1.110.0510.00716.77
7.1.100.0690.00516.54
7.1.90.0940.00616.50
7.1.80.0940.00816.55
7.1.70.0940.00816.36
7.1.60.1010.01122.26
7.1.50.0910.00822.27
7.1.40.0860.01022.16
7.1.30.0930.00722.04
7.1.20.1050.00922.06
7.1.10.0900.00516.12
7.1.00.0950.00816.25
7.0.330.0090.00816.46
7.0.320.0160.00517.38
7.0.310.0140.00417.22
7.0.300.0130.00617.43
7.0.290.0190.00017.42
7.0.280.0180.00617.37
7.0.270.0210.00317.35
7.0.260.0200.00617.11
7.0.250.0170.00317.45
7.0.240.0190.00017.33
7.0.230.0200.00417.58
7.0.220.0120.00817.53
7.0.210.0190.00017.34
7.0.200.0160.00217.39
7.0.190.0200.00017.18
7.0.180.0120.00617.39
7.0.170.0130.00517.64
7.0.160.0160.00317.33
7.0.150.0170.00317.36
7.0.140.0210.00017.52
7.0.130.0110.00817.50
7.0.120.0120.00817.44
7.0.110.0110.01117.38
7.0.100.0180.00417.39
7.0.90.0150.00817.26
7.0.80.0180.00017.25
7.0.70.0120.00617.42
7.0.60.0170.00317.43
7.0.50.0140.00417.33
7.0.40.0110.00617.44
7.0.30.0120.00417.38
7.0.20.0120.00617.13
7.0.10.0140.00417.23
7.0.00.0110.00917.18
5.6.400.0180.00316.29
5.6.390.0120.00516.17
5.6.380.0130.00215.31
5.6.370.0170.00016.28
5.6.360.0170.00016.05
5.6.350.0130.00316.05
5.6.340.0120.00616.29
5.6.330.0140.00316.23
5.6.320.0140.00416.05
5.6.310.0150.00316.27
5.6.300.0100.00716.17
5.6.290.0080.00816.26
5.6.280.0160.00316.25
5.6.270.0170.00016.32
5.6.260.0170.00016.32
5.6.250.0130.00316.09
5.6.240.0130.00316.26
5.6.230.0100.00716.28
5.6.220.0120.00516.38
5.6.210.0130.00316.30
5.6.200.0110.00516.36
5.6.190.0150.00216.38
5.6.180.0160.00016.34
5.6.170.0150.00216.24
5.6.160.0160.00016.50
5.6.150.0160.00016.16
5.6.140.0120.00416.41
5.6.130.0160.00016.29
5.6.120.0130.00416.22
5.6.110.0170.00016.32
5.6.100.0100.00716.37
5.6.90.0130.00416.29
5.6.80.0170.00016.23
5.6.70.0140.00316.14
5.6.60.0120.00416.31
5.6.50.0120.00416.04
5.6.40.0100.00616.01
5.6.30.0170.00016.22
5.6.20.0100.01016.08
5.6.10.0130.00416.15
5.6.00.0130.00416.11

preferences:
65.68 ms | 403 KiB | 5 Q