3v4l.org

run code in 300+ PHP versions simultaneously
<?php $sHtml = '<p>the info that i really need is here<p> <p class="text-right"><a class="btn btn-default espbott aplus" role="button" href="brand/google.html">Google</a></p>'; $sHtml = '<div id="wrapper">' . $sHtml . '</div>'; echo "org:\n"; echo $sHtml; echo "\n\n"; $doc = new DOMDocument(); $doc->loadHtml($sHtml); foreach( $doc->getElementsByTagName( 'a' ) as $element ) { $element->parentNode->removeChild( $element ); } echo "res:\n"; echo $doc->saveHTML($doc->getElementById('wrapper')); ?>

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.140.0200.01017.95
8.4.130.0090.01117.96
8.4.120.0070.01222.75
8.4.110.0140.00721.83
8.4.100.0040.00518.87
8.4.90.0110.01119.12
8.4.80.0060.00319.89
8.4.70.0070.00318.06
8.4.60.0100.00619.30
8.4.50.0090.01118.84
8.4.40.0150.00617.83
8.4.30.0130.00717.95
8.4.20.0070.01419.60
8.4.10.0060.00318.05
8.3.270.0160.00916.84
8.3.260.0070.00116.75
8.3.250.0120.00821.00
8.3.240.0120.00717.29
8.3.230.0120.01216.79
8.3.220.0130.00717.21
8.3.210.0140.00616.74
8.3.200.0140.00516.78
8.3.190.0130.00617.61
8.3.180.0110.00816.70
8.3.170.0130.00618.95
8.3.160.0120.00617.43
8.3.150.0060.01219.17
8.3.140.0140.00417.09
8.3.130.0030.00616.83
8.3.120.0100.01018.92
8.3.110.0150.00320.94
8.3.100.0100.00024.06
8.3.90.0060.00326.77
8.3.80.0070.00417.97
8.3.70.0110.00716.75
8.3.60.0150.00418.43
8.3.50.0060.00818.21
8.3.40.0160.00618.96
8.3.30.0040.01118.73
8.3.20.0000.00819.13
8.3.10.0050.00520.98
8.3.00.0090.00023.91
8.2.290.0090.00920.60
8.2.280.0120.00718.73
8.2.270.0170.00019.12
8.2.260.0060.00317.09
8.2.250.0070.01116.70
8.2.240.0130.00716.80
8.2.230.0000.00922.58
8.2.220.0190.00037.54
8.2.210.0160.00326.77
8.2.200.0040.00816.88
8.2.190.0100.01317.13
8.2.180.0120.00916.75
8.2.170.0060.00922.96
8.2.160.0070.00719.56
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0040.00421.45
8.2.120.0080.00026.35
8.2.110.0070.00421.31
8.2.100.0040.00818.10
8.2.90.0000.00820.75
8.2.80.0060.00318.29
8.2.70.0060.00317.92
8.2.60.0060.00318.28
8.2.50.0000.00918.10
8.2.40.0060.00319.61
8.2.30.0000.00819.48
8.2.20.0000.00718.25
8.2.10.0070.00018.41
8.2.00.0000.00719.63
8.1.330.0090.01221.95
8.1.320.0100.01016.21
8.1.310.0080.00018.88
8.1.300.0130.00617.11
8.1.290.0060.00330.84
8.1.280.0090.01325.92
8.1.270.0050.00322.41
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0030.00721.15
8.1.230.0120.00023.00
8.1.220.0090.00018.02
8.1.210.0040.00419.25
8.1.200.0030.00717.48
8.1.190.0030.00917.35
8.1.180.0030.00518.10
8.1.170.0080.00018.71
8.1.160.0030.00619.07
8.1.150.0040.00419.07
8.1.140.0000.00818.07
8.1.130.0030.00319.18
8.1.120.0060.00317.66
8.1.110.0070.00017.60
8.1.100.0000.00717.68
8.1.90.0050.00317.64
8.1.80.0070.00017.67
8.1.70.0030.00517.54
8.1.60.0060.00317.78
8.1.50.0100.00017.71
8.1.40.0070.00317.80
8.1.30.0040.00817.92
8.1.20.0020.00517.95
8.1.10.0000.00917.88
8.1.00.0000.00917.76
8.0.300.0030.00620.18
8.0.290.0080.00017.00
8.0.280.0030.00318.72
8.0.270.0030.00317.54
8.0.260.0040.00417.45
8.0.250.0070.00017.11
8.0.240.0000.00717.11
8.0.230.0070.00017.11
8.0.220.0030.00317.07
8.0.210.0080.00017.11
8.0.200.0040.00417.21
8.0.190.0030.00517.14
8.0.180.0030.00517.21
8.0.170.0030.00817.10
8.0.160.0070.00017.09
8.0.150.0040.00417.04
8.0.140.0000.00817.07
8.0.130.0030.00313.55
8.0.120.0040.00417.03
8.0.110.0050.00317.16
8.0.100.0050.00217.01
8.0.90.0050.00217.12
8.0.80.0110.00517.03
8.0.70.0000.00717.00
8.0.60.0000.00817.27
8.0.50.0040.00417.17
8.0.30.0090.01117.27
8.0.20.0100.00917.48
8.0.10.0000.00817.36
8.0.00.0100.00917.01
7.4.330.0000.00415.55
7.4.320.0060.00016.92
7.4.300.0000.00716.81
7.4.290.0070.00016.87
7.4.280.0060.00316.66
7.4.270.0060.00316.85
7.4.260.0030.00616.59
7.4.250.0030.00316.82
7.4.240.0000.00716.81
7.4.230.0000.00716.86
7.4.220.0050.00216.62
7.4.210.0120.00316.83
7.4.200.0040.00416.94
7.4.160.0040.01416.70
7.4.140.0120.00717.86
7.4.130.0150.00416.68
7.4.120.0120.00816.84
7.4.110.0030.01316.60
7.4.100.0090.00916.54
7.4.90.0040.01516.68
7.4.80.0130.00619.39
7.4.70.0140.00316.79
7.4.60.0120.00616.78
7.4.50.0040.01116.49
7.4.40.0100.01316.48
7.4.00.0030.01015.10
7.3.330.0040.00413.31
7.3.320.0050.00013.33
7.3.310.0040.00416.48
7.3.300.0000.00716.38
7.3.290.0000.00716.48
7.3.280.0090.00916.52
7.3.260.0100.00716.50
7.3.240.0090.00716.68
7.3.230.0060.01216.55
7.3.210.0070.01016.49
7.3.200.0080.00816.80
7.3.190.0120.01016.50
7.3.180.0040.01216.86
7.3.170.0110.00716.66
7.3.160.0130.00316.53
7.2.330.0100.00717.08
7.2.320.0100.01316.73
7.2.310.0130.00416.99
7.2.300.0050.01316.93
7.2.290.0140.00416.75
7.2.70.0280.00915.03
7.2.60.0210.01115.25
7.2.50.0250.01115.27
7.2.40.0260.01015.04
7.2.30.0310.00315.01
7.2.20.0230.01015.31
7.2.10.0330.00015.25
7.2.00.0190.01214.76
7.1.200.0040.00415.59
7.1.170.0280.00414.21
7.1.160.0220.01114.16
7.1.150.0360.00714.04
7.1.140.0230.01014.08
7.1.130.0270.00313.79
7.1.120.0230.00714.03
7.1.110.0250.00913.98
7.1.100.0320.00013.90
7.1.90.1010.01313.62
7.1.80.0240.01214.01
7.1.70.0360.00013.85
7.1.60.0560.00632.05
7.1.50.0540.00331.82
7.1.40.0490.01031.87
7.1.30.0450.01331.93
7.1.20.0500.00732.08
7.1.10.0280.00913.71
7.1.00.0360.00313.96

preferences:
35.96 ms | 403 KiB | 5 Q