3v4l.org

run code in 500+ PHP versions simultaneously
<?php $dom = new DOMDocument(); @$dom->loadHTML('<html><div class="ipc-inline-list "><ul class="ipc-inline "><li>1</li><li>2</li><li>3</li></ol</div></html>'); $finder = new DomXPath($dom); $class_ops = 'ipc-inline-list '; $class_opp = 'ipc-inline '; $node = $finder->query("//div[@class='$class_ops']//ul[@class='$class_opp']/li"); foreach ($node as $index => $t) { echo $t->textContent.", "; }

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.70.0100.00718.76
8.5.60.0050.00417.00
8.5.50.0090.01016.94
8.5.30.0080.00920.44
8.5.20.0060.00320.39
8.5.10.0130.00618.89
8.5.00.0120.00920.34
8.4.210.0130.00819.98
8.4.180.0170.00521.97
8.4.170.0120.01022.36
8.4.160.0120.00920.09
8.4.150.0080.00517.94
8.4.140.0130.00718.18
8.4.130.0100.01118.27
8.4.120.0050.00420.71
8.4.110.0100.01123.12
8.4.100.0080.00618.95
8.4.90.0080.00819.19
8.4.80.0130.00718.91
8.4.70.0140.00718.49
8.4.60.0140.00819.07
8.4.50.0130.00718.97
8.4.40.0060.01322.43
8.4.30.0070.01419.17
8.4.20.0040.01118.38
8.4.10.0080.00822.54
8.3.300.0100.00720.96
8.3.290.0110.01018.84
8.3.280.0110.00921.11
8.3.270.0120.00917.27
8.3.260.0130.00817.25
8.3.250.0130.00619.35
8.3.240.0100.00617.45
8.3.230.0140.00617.18
8.3.220.0140.00519.16
8.3.210.0140.00417.27
8.3.200.0070.00317.36
8.3.190.0110.00817.45
8.3.180.0120.00817.00
8.3.170.0070.01121.25
8.3.160.0090.01217.30
8.3.150.0140.00617.46
8.3.140.0140.00417.29
8.3.130.0040.01218.76
8.3.120.0120.00621.00
8.3.110.0040.00418.78
8.3.100.0060.00317.42
8.3.90.0050.00526.77
8.3.80.0040.00417.25
8.3.70.0100.01317.00
8.3.60.0110.01117.00
8.3.50.0070.01420.53
8.3.40.0180.00419.13
8.3.30.0150.00019.59
8.3.20.0070.00024.18
8.3.10.0040.00424.66
8.3.00.0040.00426.16
8.2.300.0160.00718.29
8.2.290.0040.00420.70
8.2.280.0030.00619.09
8.2.270.0070.01117.46
8.2.260.0050.00317.00
8.2.250.0040.00417.01
8.2.240.0030.00617.54
8.2.230.0030.00520.94
8.2.220.0060.00324.06
8.2.210.0100.01026.77
8.2.200.0070.00318.91
8.2.190.0040.01118.79
8.2.180.0100.00725.92
8.2.170.0130.00319.24
8.2.160.0100.00322.96
8.2.150.0040.00425.66
8.2.140.0040.00424.66
8.2.130.0100.00026.16
8.2.120.0080.00020.27
8.2.110.0040.00420.85
8.2.100.0090.00318.16
8.2.90.0000.00818.28
8.2.80.0040.00418.59
8.2.70.0040.00417.88
8.2.60.0030.00518.41
8.2.50.0090.00018.07
8.2.40.0050.00320.19
8.2.30.0000.00818.38
8.2.20.0040.00422.48
8.2.10.0020.00518.37
8.2.00.0000.00819.55
8.1.340.0060.00418.01
8.1.330.0110.00824.04
8.1.320.0120.00616.87
8.1.310.0090.00918.94
8.1.300.0060.00317.04
8.1.290.0090.00030.84
8.1.280.0040.01425.92
8.1.270.0090.00322.55
8.1.260.0050.00326.35
8.1.250.0050.00328.09
8.1.240.0000.01024.14
8.1.230.0070.00424.23
8.1.220.0050.00518.16
8.1.210.0040.00419.54
8.1.200.0030.00617.61
8.1.190.0040.00417.60
8.1.180.0030.00618.10
8.1.170.0000.00818.96
8.1.160.0040.00419.18
8.1.150.0040.00418.99
8.1.140.0050.00317.88
8.1.130.0040.00419.37
8.1.120.0040.00717.84
8.1.110.0040.00417.84
8.1.100.0000.00717.82
8.1.90.0070.00017.84
8.1.80.0050.00317.80
8.1.70.0050.00317.87
8.1.60.0030.00617.94
8.1.50.0120.01217.79
8.1.40.0190.00417.90
8.1.30.0210.00317.75
8.1.20.0150.00717.82
8.1.10.0140.00917.68
8.1.00.0190.00517.70
8.0.300.0000.00820.30
8.0.290.0040.00417.00
8.0.280.0030.00318.65
8.0.270.0000.00717.23
8.0.260.0040.00418.73
8.0.250.0000.00717.38
8.0.240.0050.00217.45
8.0.230.0040.00417.25
8.0.220.0040.00417.31
8.0.210.0030.00317.25
8.0.200.0070.00017.25
8.0.190.0060.00317.36
8.0.180.0160.00317.23
8.0.170.0200.00017.30
8.0.160.0090.01017.32
8.0.150.0170.00317.14
8.0.140.0150.00417.22
8.0.130.0130.00617.02
8.0.120.0150.00417.09
8.0.110.0170.00417.33
8.0.100.0200.00217.25
8.0.90.0140.00717.23
8.0.80.0190.00217.13
8.0.70.0080.01217.24
8.0.60.0060.01217.09
8.0.50.0130.00717.05
8.0.30.0100.01017.25
8.0.20.0150.00317.28
8.0.10.0150.00417.36
7.4.330.0000.00615.55
7.4.320.0030.00316.81
7.4.300.0070.00016.93
7.4.290.0060.00616.83
7.4.280.0030.00616.90
7.4.270.0130.00316.79
7.4.260.0170.00016.85
7.4.250.0080.00816.72
7.4.240.0230.00016.77
7.4.230.0110.01116.84
7.4.220.0170.00316.76
7.4.210.0180.00016.86
7.4.200.0000.00816.69
7.4.190.0110.00416.98
7.4.180.0200.00016.91
7.4.160.0060.01316.83
7.4.150.0130.00316.88
7.4.140.0120.00316.58
7.4.130.0130.00316.52
7.4.120.0090.00916.73
7.4.110.0110.00616.60
7.4.100.0190.00016.64
7.4.90.0110.00616.76
7.4.80.0040.00716.86
7.4.70.0100.00016.60
7.4.60.0080.00016.85
7.4.50.0000.00816.62
7.4.40.0000.00716.61
7.4.30.0040.00416.60
7.4.20.0000.00716.48
7.4.10.0060.00316.60
7.4.00.0050.00516.65

preferences:
87.1 ms | 1249 KiB | 5 Q