3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = '<li class="x ReListCent y"><div>1</div></li><li class="x ReListCent y"><div>1</div><div>2</div><div>3</div><div>4</div><div>5<a>hello</a></div></li>'; $doc = new DOMDocument($html); $doc->loadHTML($html); $xpath = new DOMXPath($doc); print_r($xpath->query('((//li[contains(@class,"ReListCent")])[2]/div)[5]/a')->item(0)->nodeValue);

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.0110.00817.10
8.5.00.0100.01220.32
8.4.150.0010.00114.05
8.4.140.0130.01117.85
8.4.130.0090.01119.03
8.4.120.0070.00524.39
8.4.110.0160.00420.63
8.4.100.0110.01018.06
8.4.90.0120.01020.71
8.4.80.0060.00419.43
8.4.70.0040.00818.12
8.4.60.0110.01019.16
8.4.50.0110.00617.89
8.4.40.0090.00919.80
8.4.30.0060.00318.13
8.4.20.0110.01120.60
8.4.10.0060.00319.90
8.3.280.0120.00818.78
8.3.270.0140.00516.95
8.3.260.0110.00916.57
8.3.250.0030.00719.26
8.3.240.0120.00817.34
8.3.230.0030.00716.91
8.3.220.0130.00519.35
8.3.210.0110.00718.65
8.3.200.0060.00316.78
8.3.190.0130.00716.77
8.3.180.0130.00718.48
8.3.170.0100.00719.27
8.3.160.0140.00618.71
8.3.150.0120.00320.95
8.3.140.0030.00516.92
8.3.130.0040.00718.64
8.3.120.0060.00920.87
8.3.110.0130.00716.97
8.3.100.0030.00624.06
8.3.90.0040.00426.77
8.3.80.0060.00317.97
8.3.70.0140.00716.88
8.3.60.0150.00618.55
8.3.50.0030.01018.64
8.3.40.0110.00418.74
8.3.30.0030.01218.91
8.3.20.0060.00322.23
8.3.10.0080.00019.01
8.3.00.0000.00919.63
8.2.290.0080.00320.86
8.2.280.0040.00422.72
8.2.270.0130.00719.10
8.2.260.0090.00920.43
8.2.250.0070.00716.95
8.2.240.0090.00917.57
8.2.230.0080.00020.94
8.2.220.0060.00337.54
8.2.210.0030.01026.77
8.2.200.0060.00318.91
8.2.190.0090.00916.82
8.2.180.0000.01518.66
8.2.170.0030.01322.96
8.2.160.0080.00621.43
8.2.150.0050.00324.18
8.2.140.0090.00324.66
8.2.130.0040.00426.16
8.2.120.0080.00020.14
8.2.110.0050.00521.40
8.2.100.0090.00318.47
8.2.90.0050.00518.00
8.2.80.0040.00419.02
8.2.70.0050.00517.88
8.2.60.0030.00518.31
8.2.50.0000.00818.10
8.2.40.0000.00821.27
8.2.30.0040.00419.59
8.2.20.0060.00618.52
8.2.10.0040.00419.84
8.2.00.0000.00718.41
8.1.330.0120.00822.38
8.1.320.0080.01116.63
8.1.310.0090.00917.41
8.1.300.0110.00018.84
8.1.290.0060.00330.84
8.1.280.0070.01425.92
8.1.270.0040.00420.59
8.1.260.0110.00426.35
8.1.250.0060.00928.09
8.1.240.0090.00019.46
8.1.230.0050.00519.46
8.1.220.0040.00417.74
8.1.210.0030.00518.77
8.1.200.0030.00617.48
8.1.190.0060.00317.35
8.1.180.0030.00518.10
8.1.170.0060.00318.72
8.1.160.0050.00219.13
8.1.150.0000.00719.08
8.1.140.0020.00520.51
8.1.130.0030.00317.68
8.1.120.0040.00317.68
8.1.110.0040.00417.80
8.1.100.0030.00517.80
8.1.90.0040.00417.77
8.1.80.0040.00417.78
8.1.70.0040.00417.77
8.1.60.0070.00317.86
8.1.50.0080.00017.86
8.1.40.0000.00817.85
8.1.30.0050.00317.86
8.1.20.0000.00817.98
8.1.10.0070.00417.87
8.1.00.0000.00817.76
8.0.300.0040.00419.31
8.0.290.0040.00417.00
8.0.280.0000.00718.62
8.0.270.0030.00317.06
8.0.260.0050.00317.14
8.0.250.0060.00317.28
8.0.240.0050.00217.21
8.0.230.0000.00717.24
8.0.220.0000.00917.05
8.0.210.0030.00617.05
8.0.200.0030.00317.07
8.0.190.0060.00317.11
8.0.180.0080.00017.07
8.0.170.0000.00917.21
8.0.160.0040.00417.10
8.0.150.0070.00017.19
8.0.140.0040.00417.17
8.0.130.0000.00613.54
8.0.120.0070.00017.00
8.0.110.0040.00417.20
8.0.100.0000.00817.08
8.0.90.0000.00717.19
8.0.80.0060.01017.21
8.0.70.0000.00717.01
8.0.60.0030.00517.05
8.0.50.0080.00017.27
8.0.30.0070.01117.45
8.0.20.0150.00917.48
8.0.10.0030.00617.20
8.0.00.0080.01017.06
7.4.330.0000.00515.55
7.4.320.0040.00416.89
7.4.300.0000.00616.87
7.4.290.0000.00716.96
7.4.280.0060.00316.79
7.4.270.0070.00016.93
7.4.260.0090.00016.93
7.4.250.0000.00716.73
7.4.240.0030.00516.91
7.4.230.0030.00317.06
7.4.220.0040.00417.03
7.4.210.0070.00816.99
7.4.200.0030.00316.91
7.4.160.0090.00716.88
7.4.140.0100.01117.86
7.4.130.0160.00316.81
7.4.120.0090.00916.89
7.4.110.0100.01016.77
7.4.100.0120.00916.57
7.4.90.0060.01216.66
7.4.80.0100.00719.39
7.4.70.0070.01016.76
7.4.60.0060.00916.85
7.4.50.0040.01116.68
7.4.40.0130.00316.94
7.4.00.0070.01014.73
7.3.330.0050.00013.14
7.3.320.0000.00613.26
7.3.310.0070.00016.54
7.3.300.0070.00016.45
7.3.290.0030.00316.46
7.3.280.0080.00616.43
7.3.260.0130.00616.72
7.3.240.0110.00816.68
7.3.230.0110.01116.71
7.3.210.0140.00316.52
7.3.200.0080.01216.46
7.3.190.0070.01016.55
7.3.180.0080.00916.81
7.3.170.0120.00916.56
7.3.160.0030.01316.52
7.3.120.0110.00714.80
7.3.110.0090.00914.89
7.3.100.0070.00714.73
7.3.90.0030.01214.76
7.3.80.0060.01014.52
7.3.70.0040.00714.71
7.3.60.0000.00814.78
7.3.50.0040.01114.86
7.3.40.0050.00514.70
7.3.30.0090.00614.68
7.3.20.0300.00615.40
7.3.10.0250.00515.59
7.3.00.0230.01015.75
7.2.330.0130.00316.71
7.2.320.0120.00616.87
7.2.310.0030.01417.00
7.2.300.0060.01016.90
7.2.290.0040.01416.84
7.2.240.0030.01614.84
7.2.230.0070.01114.84
7.2.220.0030.00915.13
7.2.210.0100.00315.05
7.2.200.0090.00314.79
7.2.190.0000.01215.14
7.2.180.0090.00615.11
7.2.170.0070.00715.14
7.2.160.0050.00514.98
7.2.150.0180.01115.75
7.2.140.0290.01015.95
7.2.130.0290.00615.86
7.2.120.0240.00816.06
7.2.110.0270.01115.82
7.2.100.0270.00715.87
7.2.90.0190.00615.90
7.2.80.0250.01115.85
7.2.70.0280.00515.95
7.2.60.0280.00615.85
7.2.50.0290.00716.05
7.2.40.0260.00816.16
7.2.30.0250.00916.13
7.2.20.0250.00515.88
7.2.10.0310.00716.02
7.2.00.0260.01215.98
7.1.330.0170.00015.86
7.1.320.0070.00415.93
7.1.310.0000.01315.94
7.1.300.0030.00715.48
7.1.290.0030.00615.77
7.1.280.0070.00315.80
7.1.270.0000.01415.94
7.1.260.0030.00315.87
7.1.250.0290.00514.70

preferences:
53.26 ms | 403 KiB | 5 Q