3v4l.org

run code in 300+ PHP versions simultaneously
<?php libxml_use_internal_errors(true); // to disable warnings if HTML is not well formed $o = new DOMDocument(); $o->loadHTML('<a href="../plugins/re_records/somefile.php?page=something&id=45">important_name</a>'); foreach($o->getElementsByTagName('a') as $anchor_tag){ $href = $anchor_tag->getAttribute('href'); if(strpos($href,'/plugins/re_records/somefile.php?page=something&id=') !== false){ $anchor_tag->setAttribute('href','/map/'.$anchor_tag->nodeValue); } } echo $o->saveHTML();

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.5.10.0090.01116.81
8.5.00.0110.01020.13
8.4.150.0020.00114.05
8.4.140.0090.01118.07
8.4.130.0130.00819.09
8.4.120.0090.00724.60
8.4.110.0130.00819.13
8.4.100.0120.00918.11
8.4.90.0040.00620.72
8.4.80.0060.00317.85
8.4.70.0090.01118.47
8.4.60.0140.00519.25
8.4.50.0100.00624.36
8.4.40.0130.00618.23
8.4.30.0100.01018.78
8.4.20.0070.01319.93
8.4.10.0040.00419.84
8.3.280.0090.01218.69
8.3.270.0160.00816.83
8.3.260.0140.00516.91
8.3.250.0120.00717.53
8.3.240.0100.00817.48
8.3.230.0100.00716.99
8.3.220.0090.00619.10
8.3.210.0130.00418.47
8.3.200.0050.00416.77
8.3.190.0070.00218.90
8.3.180.0100.01016.71
8.3.170.0140.00421.20
8.3.160.0150.00317.39
8.3.150.0090.00917.43
8.3.140.0140.00417.09
8.3.130.0090.00016.73
8.3.120.0080.00021.05
8.3.110.0050.00518.79
8.3.100.0100.00616.74
8.3.90.0080.00018.80
8.3.80.0060.00319.36
8.3.70.0150.00018.81
8.3.60.0110.00718.55
8.3.50.0160.00223.75
8.3.40.0110.00718.92
8.3.30.0120.00318.92
8.3.20.0090.00624.18
8.3.10.0050.00324.66
8.3.00.0090.00927.70
8.2.290.0090.00917.38
8.2.280.0120.00918.53
8.2.270.0110.00419.02
8.2.260.0040.01416.86
8.2.250.0000.00818.64
8.2.240.0090.00017.16
8.2.230.0030.00620.94
8.2.220.0080.00024.06
8.2.210.0090.00626.77
8.2.200.0090.00018.88
8.2.190.0080.00817.05
8.2.180.0150.00325.92
8.2.170.0130.00319.21
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0070.00319.03
8.2.110.0070.00322.50
8.2.100.0080.00418.16
8.2.90.0030.00517.97
8.2.80.0050.00319.23
8.2.70.0100.00548.54
8.2.60.0050.00948.54
8.2.50.0090.00448.71
8.2.40.0080.00449.41
8.2.30.0080.00449.34
8.2.20.0070.00548.81
8.2.10.0080.00649.50
8.2.00.0050.00749.40
8.1.330.0100.01016.20
8.1.320.0090.01016.66
8.1.310.0040.00416.96
8.1.300.0090.00918.58
8.1.290.0060.00330.84
8.1.280.0070.00725.92
8.1.270.0030.00523.99
8.1.260.0080.00026.35
8.1.250.0050.00328.09
8.1.240.0060.00320.99
8.1.230.0110.00021.09
8.1.220.0000.01017.78
8.1.210.0040.00419.10
8.1.200.0080.00548.47
8.1.190.0070.00548.40
8.1.180.0100.00248.71
8.1.170.0080.00549.12
8.1.160.0090.00349.28
8.1.150.0110.00249.30
8.1.140.0090.00349.25
8.1.130.0100.00249.84
8.1.120.0070.00448.53
8.1.110.0050.00748.50
8.1.100.0070.00548.47
8.1.90.0080.00448.55
8.1.80.0100.00538.24
8.1.70.0080.00438.20
8.1.60.0110.00538.32
8.1.50.0110.00338.27
8.1.40.0110.00438.28
8.1.30.0090.00538.36
8.1.20.0070.00938.32
8.1.10.0110.00438.30
8.1.00.0100.00638.29
8.0.300.0000.00720.16
8.0.290.0080.00548.16
8.0.280.0100.00249.01
8.0.270.0040.00848.14
8.0.260.0050.00649.81
8.0.250.0100.00248.26
8.0.240.0050.00748.24
8.0.230.0040.00748.21
8.0.220.0040.00848.23
8.0.210.0050.00637.79
8.0.200.0100.00437.88
8.0.190.0090.00437.90
8.0.180.0090.00437.85
8.0.170.0100.00337.80
8.0.160.0100.00437.87
8.0.150.0100.00437.83
8.0.140.0080.00537.77
8.0.130.0100.00336.62
8.0.120.0040.01037.81
8.0.110.0050.00837.79
8.0.100.0080.00537.79
8.0.90.0100.00337.87
8.0.80.0080.00832.64
8.0.70.0120.00337.82
8.0.60.0120.00237.89
8.0.50.0090.00537.76
8.0.30.0130.00438.00
8.0.20.0130.00432.71
8.0.10.0090.00437.89
8.0.00.0060.01037.72
7.4.330.0120.00531.11
7.4.320.0100.00148.04
7.4.300.0090.00237.58
7.4.290.0090.00437.65
7.4.280.0080.00537.59
7.4.270.0080.00537.61
7.4.260.0070.00536.55
7.4.250.0090.00437.68
7.4.240.0090.00437.59
7.4.230.0090.00537.66
7.4.220.0050.00632.38
7.4.210.0080.00927.24
7.4.200.0090.00337.66
7.4.190.0130.00348.11
7.4.180.0120.00448.05
7.4.160.0100.00548.07
7.4.150.0060.00948.02
7.4.140.0120.00247.95
7.4.130.0090.00832.38
7.4.120.0090.00637.50
7.4.110.0080.00837.57
7.4.100.0080.00737.45
7.4.90.0060.00937.56
7.4.80.0130.00529.06
7.4.70.0130.00632.15
7.4.60.0110.00832.29
7.4.50.0120.00832.27
7.4.40.0140.00432.21
7.4.30.0120.00732.24
7.4.20.0130.00532.37
7.4.10.0090.00832.25
7.4.00.0100.00532.36
7.3.330.0070.00537.37
7.3.320.0110.00236.34
7.3.310.0070.00437.34
7.3.300.0090.00437.40
7.3.290.0090.00529.00
7.3.280.0110.00537.43
7.3.270.0150.00047.87
7.3.260.0100.00837.44
7.3.250.0120.00347.80
7.3.240.0090.00547.86
7.3.230.0100.00537.48
7.3.220.0120.00447.82
7.3.210.0070.00937.43
7.3.200.0160.01532.25
7.3.190.0120.00832.29
7.3.180.0150.00632.27
7.3.170.0130.00732.17
7.3.160.0140.00532.16
7.3.150.0140.00632.25
7.3.140.0150.00532.25
7.3.130.0160.01032.25
7.3.120.0160.00432.13
7.3.110.0150.00432.13
7.3.100.0160.00432.21
7.3.90.0160.00432.30
7.3.80.0120.00832.19
7.3.70.0140.00732.26
7.3.60.0130.00832.28
7.3.50.0110.00832.23
7.3.40.0130.00532.18
7.3.30.0200.00832.22
7.3.20.0110.00832.72
7.3.10.0180.00232.77
7.3.00.0140.00832.70
7.2.340.0110.00447.91
7.2.330.0080.00837.68
7.2.320.0130.00832.41
7.2.310.0160.00632.44
7.2.300.0090.01132.43
7.2.290.0160.00532.42
7.2.280.0130.00632.36
7.2.270.0150.00632.45
7.2.260.0150.00832.46
7.2.250.0110.00832.37
7.2.240.0140.00632.44
7.2.230.0150.00632.36
7.2.220.0120.00832.37
7.2.210.0160.00632.38
7.2.200.0150.00732.41
7.2.190.0160.00432.46
7.2.180.0120.00832.46
7.2.170.0150.00532.48
7.2.160.0130.00632.54
7.2.150.0160.00532.98
7.2.140.0110.01132.94
7.2.130.0110.01033.08
7.2.120.0170.00632.97
7.2.110.0160.00632.81
7.2.100.0160.00532.90
7.2.90.0120.00832.79
7.2.80.0120.01132.81
7.2.70.0130.01032.81
7.2.60.0130.00632.79
7.2.50.0100.00732.78
7.2.40.0160.00632.94
7.2.30.0100.01132.83
7.2.20.0150.00432.84
7.2.10.0190.00832.86
7.2.00.0100.00732.75

preferences:
159.36 ms | 403 KiB | 5 Q