3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $text="<h2>Introduction of Abdominal aortic aneurysm</h2> <p>In this section, we will learn about symptom, causes, and treatment of AAA</p> <h2>This is Treatment for a burst AAA</h2><p>.......<p> <h2>.........</h2>"; $dom->loadHTML($text); $elms = $dom->getElementsByTagName("h2"); foreach($elms as $elm) { if (strstr($elm->nodeValue, "Treatment") !== false) { echo $elm->C14N(); } }

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.0150.00517.79
8.4.130.0090.00818.02
8.4.120.0090.01124.09
8.4.110.0090.01324.43
8.4.100.0120.00917.89
8.4.90.0150.00522.63
8.4.80.0140.00619.08
8.4.70.0030.00519.00
8.4.60.0120.00920.96
8.4.50.0120.00517.86
8.4.40.0060.01019.73
8.4.30.0130.00617.77
8.4.20.0070.01417.88
8.4.10.0030.00518.00
8.3.270.0140.00616.77
8.3.260.0120.01017.00
8.3.250.0060.00219.06
8.3.240.0130.00617.69
8.3.230.0120.00716.97
8.3.220.0050.00419.22
8.3.210.0140.00618.73
8.3.200.0060.00316.58
8.3.190.0100.00917.27
8.3.180.0090.00916.80
8.3.170.0090.00919.50
8.3.160.0150.00318.67
8.3.150.0040.00421.07
8.3.140.0030.00617.44
8.3.130.0000.00818.72
8.3.120.0050.00520.87
8.3.110.0160.00020.94
8.3.100.0060.00324.06
8.3.90.0040.00426.77
8.3.80.0070.00317.97
8.3.70.0120.00318.68
8.3.60.0120.00418.68
8.3.50.0060.00917.71
8.3.40.0110.00719.22
8.3.30.0090.00618.96
8.3.20.0040.00419.26
8.3.10.0080.00023.78
8.3.00.0080.00324.04
8.2.290.0110.01017.02
8.2.280.0130.00718.67
8.2.270.0120.00619.27
8.2.260.0040.00418.70
8.2.250.0150.00016.84
8.2.240.0050.00517.54
8.2.230.0080.00022.58
8.2.220.0060.00337.54
8.2.210.0080.00026.77
8.2.200.0100.00017.00
8.2.190.0150.00017.00
8.2.180.0160.00018.91
8.2.170.0070.00722.96
8.2.160.0110.00419.29
8.2.150.0080.00024.18
8.2.140.0000.00824.66
8.2.130.0060.00326.16
8.2.120.0080.00020.89
8.2.110.0060.00320.72
8.2.100.0040.00817.97
8.2.90.0060.00318.00
8.2.80.0080.00017.97
8.2.70.0080.00018.28
8.2.60.0050.00318.30
8.2.50.0000.00818.10
8.2.40.0040.00419.73
8.2.30.0040.00419.60
8.2.20.0000.00818.39
8.2.10.0030.00519.71
8.2.00.0050.00319.88
8.1.330.0120.00622.25
8.1.320.0110.00918.05
8.1.310.0080.00018.84
8.1.300.0090.00018.09
8.1.290.0060.00630.84
8.1.280.0190.00425.92
8.1.270.0040.00423.99
8.1.260.0030.00526.35
8.1.250.0060.01228.09
8.1.240.0090.00022.43
8.1.230.0070.00421.22
8.1.220.0080.00018.77
8.1.210.0000.00819.21
8.1.200.0030.00617.48
8.1.190.0000.00917.50
8.1.180.0040.00418.10
8.1.170.0050.00519.07
8.1.160.0040.00419.12
8.1.150.0000.00819.16
8.1.140.0000.00819.91
8.1.130.0050.00319.32
8.1.120.0040.00417.80
8.1.110.0040.00417.77
8.1.100.0050.00317.81
8.1.90.0090.00017.82
8.1.80.0080.00017.74
8.1.70.0000.00717.82
8.1.60.0040.00417.91
8.1.50.0000.00817.80
8.1.40.0000.00817.66
8.1.30.0050.00317.90
8.1.20.0000.01217.96
8.1.10.0040.00417.80
8.1.00.0040.00417.91
8.0.300.0050.00320.16
8.0.290.0000.00816.88
8.0.280.0040.00418.79
8.0.270.0030.00317.52
8.0.260.0080.00017.61
8.0.250.0070.00017.27
8.0.240.0050.00217.28
8.0.230.0050.00217.29
8.0.220.0050.00317.16
8.0.210.0030.00317.23
8.0.200.0030.00317.18
8.0.190.0000.00817.26
8.0.180.0040.00417.12
8.0.170.0060.00317.25
8.0.160.0030.00417.31
8.0.150.0000.00717.14
8.0.140.0000.00817.18
8.0.130.0060.00013.57
8.0.120.0040.00417.12
8.0.110.0070.00017.16
8.0.100.0030.00516.98
8.0.90.0040.00417.06
8.0.80.0090.01117.23
8.0.70.0070.00017.17
8.0.60.0070.00017.04
8.0.50.0040.00417.12
8.0.30.0120.00617.42
8.0.20.0130.00717.41
8.0.10.0040.00417.18
8.0.00.0050.01317.07
7.4.330.0020.00215.55
7.4.320.0030.00316.66
7.4.300.0000.00716.90
7.4.290.0000.00716.91
7.4.280.0040.00416.80
7.4.270.0000.00716.75
7.4.260.0050.00316.74
7.4.250.0080.00016.86
7.4.240.0030.00516.82
7.4.230.0040.00416.64
7.4.220.0090.00016.93
7.4.210.0080.00816.87
7.4.200.0030.00516.99
7.4.160.0100.00616.89
7.4.140.0130.00717.86
7.4.130.0180.00416.68
7.4.120.0100.01016.90
7.4.110.0070.01016.87
7.4.100.0140.00316.86
7.4.90.0110.00616.75
7.4.80.0160.00919.39
7.4.70.0120.00616.84
7.4.60.0090.00916.84
7.4.50.0090.00616.75
7.4.40.0060.01616.66
7.4.00.0070.01115.10
7.3.330.0000.00513.45
7.3.320.0000.00513.43
7.3.310.0000.00716.61
7.3.300.0030.00316.57
7.3.290.0070.00016.51
7.3.280.0130.00716.47
7.3.260.0100.00716.72
7.3.240.0150.00516.64
7.3.230.0100.01016.58
7.3.210.0160.00616.98
7.3.200.0030.01316.51
7.3.190.0090.00616.78
7.3.180.0070.01016.93
7.3.170.0050.01116.79
7.3.160.0150.00316.58
7.2.330.0070.01117.13
7.2.320.0070.01416.79
7.2.310.0130.01017.04
7.2.300.0150.00617.12
7.2.290.0070.01116.77
7.2.80.0190.00915.14
7.2.70.0220.00615.25
7.2.60.0280.00614.97
7.2.50.0200.01015.16
7.2.40.0300.01215.00
7.2.30.0280.00615.25
7.2.20.0170.01014.92
7.2.10.0220.00615.27
7.2.00.0140.01415.35
7.1.200.0000.01115.87
7.1.190.0180.00914.14
7.1.180.0360.00713.79
7.1.170.0240.01413.88
7.1.160.0220.00614.08
7.1.150.0240.00313.82
7.1.140.0170.01014.08
7.1.130.0210.00914.10
7.1.120.0220.00614.16
7.1.110.0240.00314.22
7.1.100.0200.01014.01
7.1.90.0150.01214.18
7.1.80.0200.00714.03
7.1.70.0200.00814.21
7.1.60.0370.01232.04
7.1.50.0410.01032.07
7.1.40.1080.00731.73
7.1.30.0450.00331.97
7.1.20.0390.00731.93
7.1.10.0250.00314.03
7.1.00.0220.00614.14

preferences:
32.83 ms | 403 KiB | 5 Q