3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument; $dom->loadHTML(<<<'H_T_M_L' <html><body> <div class="app_content"> <ul class="js-events-container">... <li class="single-event live">...</li> <li class="single-event live">...</li> <li class="single-event live">...</li> <li class="single-event live">...</li> <li class="single-event live"> ::before //First DIV of li <div class="single-event__code"> Event Code: <strong>96441</strong> </div> <div class="single-event__time"> <span class="score js-score">LIVE</span> <span class="time js-timer"></span> </div> <div class="single-event__players"> <a href="/sportsbook/SOCCER/BRAZIL_SERIE_D/400953/"> AA Portuguesa RJ <span> v </span> Audax SP </a> </div> <div class="single-event__bets three markets"> <div class="single-event__bets__container js-bets-container"> </body></html> H_T_M_L ); $xp = new DOMXPath($dom); $coll = $xp->query('//div[@class="single-event__code"]'); if ($coll->length) { foreach ($coll as $item) { echo $item->nodeValue, "\n"; } }

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.130.0130.00718.13
8.4.120.0070.01120.79
8.4.110.0140.00619.35
8.4.100.0050.00418.12
8.4.90.0070.00319.15
8.4.80.0090.01218.10
8.4.70.0130.00918.36
8.4.60.0130.00918.01
8.4.50.0100.01119.17
8.4.40.0130.00319.63
8.4.30.0090.00017.95
8.4.20.0120.00819.71
8.4.10.0040.00719.63
8.3.260.0110.00916.75
8.3.250.0110.00919.18
8.3.240.0090.01016.79
8.3.230.0080.01117.08
8.3.220.0080.00817.48
8.3.210.0080.00518.78
8.3.200.0040.00417.03
8.3.190.0120.00716.99
8.3.180.0110.00918.59
8.3.170.0110.00817.72
8.3.160.0120.00618.52
8.3.150.0040.01419.11
8.3.140.0040.00417.82
8.3.130.0000.01018.52
8.3.120.0130.00619.22
8.3.110.0030.00517.03
8.3.100.0030.00618.68
8.3.90.0150.00326.77
8.3.80.0090.00317.97
8.3.70.0150.00618.68
8.3.60.0070.00716.88
8.3.50.0120.00617.69
8.3.40.0110.00419.10
8.3.30.0150.00618.96
8.3.20.0050.00322.28
8.3.10.0090.00023.78
8.3.00.0040.00420.04
8.2.290.0120.00720.70
8.2.280.0120.00918.80
8.2.270.0060.01317.44
8.2.260.0150.00017.16
8.2.250.0040.00418.68
8.2.240.0040.00419.24
8.2.230.0000.00820.94
8.2.220.0030.00624.06
8.2.210.0110.00726.77
8.2.200.0040.00418.88
8.2.190.0100.01016.88
8.2.180.0120.00618.43
8.2.170.0120.00622.96
8.2.160.0130.00319.64
8.2.150.0070.00725.66
8.2.140.0080.00024.66
8.2.130.0090.00020.90
8.2.120.0080.00026.35
8.2.110.0080.00319.46
8.2.100.0120.00018.00
8.2.90.0090.00018.09
8.2.80.0040.00420.75
8.2.70.0030.00618.14
8.2.60.0080.00018.41
8.2.50.0040.00418.10
8.2.40.0040.00420.84
8.2.30.0040.00419.60
8.2.20.0040.00418.43
8.2.10.0040.00418.41
8.2.00.0000.00818.36
8.1.330.0100.00922.55
8.1.320.0100.00920.27
8.1.310.0040.00419.11
8.1.300.0000.00918.26
8.1.290.0090.00030.84
8.1.280.0120.00925.92
8.1.270.0050.00320.89
8.1.260.0040.00426.35
8.1.250.0070.00028.09
8.1.240.0060.00322.59
8.1.230.0120.00021.47
8.1.220.0030.00518.14
8.1.210.0080.00019.13
8.1.200.0060.00317.63
8.1.190.0040.00417.60
8.1.180.0080.00018.10
8.1.170.0000.00918.96
8.1.160.0000.00719.28
8.1.150.0080.00022.32
8.1.140.0050.00219.89
8.1.130.0000.00720.90
8.1.120.0040.00417.88
8.1.110.0030.00517.84
8.1.100.0030.00617.83
8.1.90.0040.00417.68
8.1.80.0030.00917.81
8.1.70.0000.00717.86
8.1.60.0030.00517.85
8.1.50.0050.00317.79
8.1.40.0000.00817.92
8.1.30.0070.00717.91
8.1.20.0090.00017.95
8.1.10.0000.00917.90
8.1.00.0030.00517.92
8.0.300.0030.00520.61
8.0.290.0000.00717.00
8.0.280.0070.00018.77
8.0.270.0000.00717.59
8.0.260.0000.00717.37
8.0.250.0000.00717.32
8.0.240.0080.00017.30
8.0.230.0040.00417.30
8.0.220.0080.00317.18
8.0.210.0000.00817.34
8.0.200.0050.00217.38
8.0.190.0030.00617.38
8.0.180.0000.00817.21
8.0.170.0000.00717.38
8.0.160.0040.00417.30
8.0.150.0000.00817.28
8.0.140.0070.00017.20
8.0.130.0080.00013.75
8.0.120.0000.00717.21
8.0.110.0000.00717.39
8.0.100.0030.00517.23
8.0.90.0040.00417.24
8.0.80.0120.00917.31
8.0.70.0020.00517.23
8.0.60.0000.00817.35
8.0.50.0040.00417.17
8.0.30.0130.00617.60
8.0.20.0110.00917.44
8.0.10.0020.00517.25
8.0.00.0070.01117.18
7.4.330.0060.00015.55
7.4.320.0060.00016.74
7.4.300.0030.00316.96
7.4.290.0040.00716.95
7.4.280.0080.00016.96
7.4.270.0000.00816.96
7.4.260.0070.00016.82
7.4.250.0040.00416.87
7.4.240.0040.00416.85
7.4.230.0030.00317.00
7.4.220.0000.01716.91
7.4.210.0100.00717.03
7.4.200.0030.00316.90
7.4.160.0140.00616.79
7.4.150.0070.01117.40
7.4.140.0100.01117.86
7.4.130.0220.00417.04
7.4.120.0100.00916.77
7.4.110.0040.01416.91
7.4.100.0100.00716.63
7.4.90.0130.01016.69
7.4.80.0120.00619.39
7.4.70.0100.00616.77
7.4.60.0070.01016.77
7.4.50.0040.01116.84
7.4.40.0130.00316.83
7.4.30.0090.01316.79
7.4.00.0100.01015.11
7.3.330.0060.00013.42
7.3.320.0000.00513.55
7.3.310.0030.00416.69
7.3.300.0040.00416.69
7.3.290.0060.00916.65
7.3.280.0090.01016.67
7.3.270.0150.00317.40
7.3.260.0100.01016.62
7.3.250.0090.01016.78
7.3.240.0120.00816.85
7.3.230.0070.01116.60
7.3.210.0090.00816.63
7.3.200.0080.01216.79
7.3.190.0090.01216.96
7.3.180.0080.00816.79
7.3.170.0070.01016.72
7.3.160.0080.00816.75
7.2.330.0100.00717.13
7.2.320.0090.00917.21
7.2.310.0070.01016.93
7.2.300.0100.00916.73
7.2.290.0110.00617.08
7.1.200.0090.00316.18
7.1.70.0000.00817.65
7.1.60.0100.00017.65
7.1.50.0040.01817.65
7.1.40.0060.01317.65
7.1.30.0040.00717.65
7.1.20.0040.01117.65
7.1.10.0030.00517.65
7.1.00.0030.00517.65
7.0.200.0060.00317.65
7.0.190.0030.00717.65
7.0.180.0000.01017.65
7.0.170.0000.00817.65
7.0.160.0030.00717.65
7.0.150.0090.00017.65
7.0.140.0030.00617.65
7.0.130.0000.00717.65
7.0.120.0000.00817.65
7.0.110.0000.00917.65
7.0.100.0060.00617.65
7.0.90.0060.00317.65
7.0.80.0000.00717.65
7.0.70.0030.00617.65
7.0.60.0040.01117.65
7.0.50.0000.00717.65
7.0.40.0030.00617.65
7.0.30.0040.00417.65
7.0.20.0090.00017.65
7.0.10.0000.00917.65
7.0.00.0020.00517.65

preferences:
123.55 ms | 403 KiB | 5 Q