3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <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> HTML; $doc = new DOMDocument(); $doc->loadHTML($html); foreach($doc->getElementsByTagName('a') as $a) { if ($a->getAttribute('class') === 'profile-link') { $parts = explode('?', $a->getAttribute('href')); parse_str($parts[1], $output); echo 'Title: ' . $a->getAttribute('title') . '<br>'; echo 'Text: ' . $a->nodeValue . '<br>'; echo 'PID: ' . $output['PID']; // etc.. } }

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.70.0100.01316.63
8.3.60.0030.01718.61
8.3.50.0200.00318.39
8.3.40.0110.00419.27
8.3.30.0040.01118.97
8.3.20.0080.00723.91
8.3.10.0080.00624.72
8.3.00.0110.00624.70
8.2.190.0030.01416.63
8.2.180.0040.01216.88
8.2.170.0150.00619.20
8.2.160.0040.01122.96
8.2.150.0090.00725.66
8.2.140.0080.00725.16
8.2.130.0090.00523.43
8.2.120.0070.00526.01
8.2.110.0050.00822.59
8.2.100.0080.00821.91
8.2.90.0110.00423.26
8.2.80.0030.01023.16
8.2.70.0140.00550.59
8.2.60.0080.00521.92
8.2.50.0050.00921.71
8.2.40.0110.00322.59
8.2.30.0090.00322.52
8.2.20.0080.00521.97
8.2.10.0130.00022.01
8.2.00.0060.00721.99
8.1.280.0040.01125.92
8.1.270.0130.00224.94
8.1.260.0080.00526.01
8.1.250.0070.00626.88
8.1.240.0130.00224.32
8.1.230.0050.01123.38
8.1.220.0060.00821.84
8.1.210.0070.00822.38
8.1.200.0090.00521.57
8.1.190.0050.00921.57
8.1.180.0070.00821.88
8.1.170.0090.00722.19
8.1.160.0050.01122.38
8.1.150.0030.01223.26
8.1.140.0090.00521.78
8.1.130.0070.00921.67
8.1.120.0020.01321.62
8.1.110.0050.00921.67
8.1.100.0070.00621.67
8.1.90.0080.00521.69
8.1.80.0020.01021.68
8.1.70.0030.00821.63
8.1.60.0070.00521.74
8.1.50.0040.00821.70
8.1.40.0020.00921.72
8.1.30.0110.00521.74
8.1.20.0050.00921.77
8.1.10.0000.01221.67
8.1.00.0090.00621.70
8.0.300.0040.01022.90
8.0.290.0190.00221.27
8.0.280.0140.00722.12
8.0.270.0060.00621.57
8.0.260.0150.00021.40
8.0.250.0070.00521.46
8.0.240.0120.00921.45
8.0.230.0120.00521.39
8.0.220.0090.00521.40
8.0.210.0110.00921.36
8.0.200.0060.00921.42
8.0.190.0160.00621.44
8.0.180.0080.00621.41
8.0.170.0220.00221.40
8.0.160.0050.00921.41
8.0.150.0150.00821.39
8.0.140.0140.00521.37
8.0.130.0100.00619.64
8.0.120.0140.00321.39
8.0.110.0090.00321.37
8.0.100.0170.00221.29
8.0.90.0150.00721.45
8.0.80.0170.00321.39
8.0.70.0070.00721.41
8.0.60.0160.00621.32
8.0.50.0180.00521.44
8.0.30.0110.00819.33
8.0.20.0120.00920.16
8.0.10.0110.00621.37
8.0.00.0180.00419.83
7.4.330.0120.00320.61
7.4.320.0170.00421.22
7.4.300.0150.00321.18
7.4.290.0150.00621.17
7.4.280.0170.00421.15
7.4.270.0150.00521.21
7.4.260.0160.00321.12
7.4.250.0150.00621.24
7.4.240.0180.00721.20
7.4.230.0170.00521.18
7.4.220.0140.00521.23
7.4.210.0110.00819.75
7.4.200.0140.00321.28
7.4.190.0280.00025.66
7.4.180.0280.00025.66
7.4.160.0130.01019.00
7.4.150.0320.00425.66
7.4.140.0160.00519.42
7.4.130.0200.00821.20
7.4.120.0100.01318.20
7.4.110.0160.01021.03
7.4.100.0230.00221.15
7.4.90.0160.01021.19
7.4.80.0180.00422.53
7.4.70.0200.00821.14
7.4.60.0190.00821.13
7.4.50.0200.00621.22
7.4.40.0190.01021.18
7.4.30.0290.00625.66
7.4.20.0250.00425.66
7.4.10.0230.00725.66
7.4.00.0110.01017.78
7.3.330.0100.00418.04
7.3.320.0120.00419.46
7.3.310.0110.00621.10
7.3.300.0160.00421.03
7.3.290.0120.00420.99
7.3.280.0150.00719.56
7.3.270.0190.01425.66
7.3.260.0110.01218.95
7.3.250.0170.02125.66
7.3.240.0130.01018.39
7.3.230.0190.00821.14
7.3.220.0300.01125.66
7.3.210.0200.01021.08
7.3.200.0240.00621.19
7.3.190.0210.01121.13
7.3.180.0220.01221.07
7.3.170.0210.00321.25
7.3.160.0190.00321.11
7.3.150.0170.01425.66
7.3.140.0190.01125.66
7.3.130.0240.01025.66
7.3.120.0150.00818.36
7.3.110.0120.00818.53
7.3.100.0090.01118.63
7.3.90.0100.00518.46
7.3.80.0130.00818.39
7.3.70.0140.00718.37
7.3.60.0140.00718.46
7.3.50.0120.00718.51
7.3.40.0130.00717.57
7.3.30.0090.00617.50
7.3.20.0110.00818.85
7.3.10.0140.00718.49
7.3.00.0140.00718.38
7.2.340.0290.01525.66
7.2.330.0220.00721.30
7.2.320.0160.01221.23
7.2.310.0170.00921.19
7.2.300.0170.01021.28
7.2.290.0150.01021.15
7.2.280.0210.00725.66
7.2.270.0270.00025.66
7.2.260.0240.00325.66
7.2.250.0120.01118.84
7.2.240.0140.00918.63
7.2.230.0140.00818.70
7.2.220.0120.00518.65
7.2.210.0120.01018.70
7.2.200.0110.00718.66
7.2.190.0110.00618.62
7.2.180.0130.00518.75
7.2.170.0120.00917.77
7.2.160.0170.01120.31
7.2.150.0170.01521.32
7.2.140.0190.00621.26
7.2.130.0150.01119.73
7.2.120.0170.01019.81
7.2.110.0140.00919.79
7.2.100.0130.01119.91
7.2.90.0180.00819.76
7.2.80.0160.00819.83
7.2.70.0190.00519.86
7.2.60.0200.00619.17
7.2.50.0160.01019.12
7.2.40.0570.00919.28
7.2.30.0490.00919.36
7.2.20.0530.00619.43
7.2.10.0540.00519.39
7.2.00.0820.01019.46
7.1.330.0180.00419.14
7.1.320.0090.00719.16
7.1.310.0140.00719.16
7.1.300.0090.00819.21
7.1.290.0080.00819.10
7.1.280.0090.01018.27
7.1.270.0100.00918.13
7.1.260.0140.00618.40
7.1.250.0120.00918.82
7.1.240.0180.00920.65
7.1.230.0180.00720.81
7.1.220.0190.00520.83
7.1.210.0220.00820.74
7.1.200.0150.00519.19
7.1.190.0220.00720.74
7.1.180.0170.00820.71
7.1.170.0250.00120.81
7.1.160.0750.01119.38
7.1.150.0650.01119.27
7.1.140.0740.00719.52
7.1.130.0630.01119.38
7.1.120.0580.01019.34
7.1.110.0530.01119.31
7.1.100.0580.00919.22
7.1.90.0860.00819.30
7.1.80.0830.00719.35
7.1.70.0870.00918.97
7.1.60.0930.01224.86
7.1.50.1310.00924.85
7.1.40.1130.00724.71
7.1.30.1240.00624.66
7.1.20.1410.00824.62
7.1.10.0970.01118.69
7.1.00.0680.00818.79
7.0.330.0230.00520.53
7.0.320.0190.00525.66
7.0.310.0220.00325.66
7.0.300.0240.00325.66
7.0.290.0190.00725.66
7.0.280.0170.00825.66
7.0.270.0240.00625.66
7.0.260.0270.00725.66
7.0.250.0180.00725.66
7.0.240.0270.00825.66
7.0.230.0190.00725.66
7.0.220.0170.00825.66
7.0.210.0200.01625.66
7.0.200.0260.01025.66
7.0.190.0320.00325.66
7.0.180.0130.01325.66
7.0.170.0180.00725.66
7.0.160.0300.00325.66
7.0.150.0170.00925.66
7.0.140.0290.00625.66
7.0.130.0310.00725.66
7.0.120.0310.00925.66
7.0.110.0230.00625.66
7.0.100.0210.00325.66
7.0.90.0140.00025.66
7.0.80.0190.00025.66
7.0.70.0060.00925.66
7.0.60.0110.00325.66
7.0.50.0090.00625.66
7.0.40.0090.00625.66
7.0.30.0080.00525.66
7.0.20.0190.00425.66
7.0.10.0240.00025.66
7.0.00.0070.00725.66
5.6.400.0230.03020.10
5.6.390.0230.03220.14
5.6.380.0260.02620.21
5.6.370.0240.05125.66
5.6.360.0140.06225.66
5.6.350.0220.05325.66
5.6.340.0420.05925.66
5.6.330.0130.08125.66
5.6.320.0170.06125.66
5.6.310.0230.05325.66
5.6.300.0240.05125.66
5.6.290.0190.06025.66
5.6.280.0170.06025.66
5.6.270.0260.06925.66
5.6.260.0100.07025.66
5.6.250.0250.05025.66
5.6.240.0250.05025.66
5.6.230.0260.08225.66
5.6.220.0230.05625.66
5.6.210.0160.05825.66
5.6.200.0130.06025.66
5.6.190.0260.07125.66
5.6.180.0070.06725.66
5.6.170.0300.04625.66
5.6.160.0220.05425.66
5.6.150.0210.07725.66
5.6.140.0140.05925.66
5.6.130.0150.05925.66
5.6.120.0180.08425.66
5.6.110.0190.06125.66
5.6.100.0200.07125.66
5.6.90.0160.06425.66
5.6.80.0170.05225.66
5.6.70.0190.07425.66
5.6.60.0140.06725.66
5.6.50.0200.05025.66
5.6.40.0160.05425.66
5.6.30.0210.05325.66
5.6.20.0230.04925.66
5.6.10.0200.05825.66
5.6.00.0230.06025.66

preferences:
40.58 ms | 401 KiB | 5 Q