3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <div class="webstarvideo"> <video style="width:100%;height:100%" preload="none" class=""> <source src="I NEED THIS" type="video/mp4"></video> <div class="webstarvideodoul"> <canvas></canvas> </div> </div> HTML; $doc = new DOMDocument(); libxml_use_internal_errors(true); $doc->loadHTML($html); $xpath = new DOMXPath($doc); echo $xpath->evaluate("string(//video[contains(@style, 'height:100%') and contains(@style, 'height:100%')]/source/@src)");

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.0030.00516.84
8.5.00.0150.00620.41
8.4.150.0020.00114.05
8.4.140.0110.01118.07
8.4.130.0080.01318.91
8.4.120.0130.00722.84
8.4.110.0110.00819.20
8.4.100.0130.00818.14
8.4.90.0070.00318.19
8.4.80.0120.00518.25
8.4.70.0030.00518.27
8.4.60.0110.01019.03
8.4.50.0080.00918.46
8.4.40.0130.00718.03
8.4.30.0090.01019.20
8.4.20.0080.00020.14
8.4.10.0040.01219.71
8.3.280.0100.01018.71
8.3.270.0130.00616.88
8.3.260.0080.01317.00
8.3.250.0050.00419.49
8.3.240.0090.01116.64
8.3.230.0040.00517.12
8.3.220.0140.00417.30
8.3.210.0120.00716.91
8.3.200.0060.00317.13
8.3.190.0100.00917.41
8.3.180.0130.00817.00
8.3.170.0090.00618.91
8.3.160.0150.00317.12
8.3.150.0070.01119.22
8.3.140.0000.00821.17
8.3.130.0000.00818.58
8.3.120.0150.00318.60
8.3.110.0100.00716.88
8.3.100.0030.00717.28
8.3.90.0240.00926.77
8.3.80.0190.00026.77
8.3.70.0160.00626.77
8.3.60.0150.00826.77
8.3.50.0150.00726.77
8.3.40.0150.00426.77
8.3.30.0190.00026.77
8.3.20.0170.00626.77
8.3.10.0140.00526.77
8.3.00.0190.00026.77
8.2.290.0120.00720.92
8.2.280.0040.00520.47
8.2.270.0110.00717.73
8.2.260.0070.00416.83
8.2.250.0130.00617.02
8.2.240.0120.00317.59
8.2.230.0030.00620.94
8.2.220.0100.00024.06
8.2.210.0040.00426.77
8.2.200.0180.00026.77
8.2.190.0140.00426.77
8.2.180.0150.00326.77
8.2.170.0180.00026.77
8.2.160.0120.00626.77
8.2.150.0110.00726.77
8.2.140.0150.00426.77
8.2.130.0140.00526.77
8.2.120.0200.00326.77
8.2.110.0190.00026.77
8.2.100.0200.00026.77
8.2.90.0150.00426.77
8.2.80.0200.00026.77
8.2.70.0090.00926.77
8.2.60.0170.00326.77
8.2.50.0160.00426.77
8.2.40.0180.00026.77
8.2.30.0080.00826.77
8.2.20.0150.00326.77
8.2.10.0130.00426.77
8.2.00.0160.00326.77
8.1.330.0080.01122.23
8.1.320.0120.00616.59
8.1.310.0000.01816.93
8.1.300.0060.00318.28
8.1.290.0140.00626.77
8.1.280.0170.00326.77
8.1.270.0110.01126.77
8.1.260.0100.01026.77
8.1.250.0180.00326.77
8.1.240.0150.00226.77
8.1.230.0170.00026.77
8.1.220.0120.00626.77
8.1.210.0110.00726.77
8.1.200.0080.00826.77
8.1.190.0150.00226.77
8.1.180.0100.00726.77
8.1.170.0100.00726.77
8.1.160.0170.00026.77
8.1.150.0080.00826.77
8.1.140.0170.00026.77
8.1.130.0090.00926.77
8.1.120.0140.00326.77
8.1.110.0110.00626.77
8.1.100.0150.00226.77
8.1.90.0150.00326.77
8.1.80.0160.00026.77
8.1.70.0140.00326.77
8.1.60.0180.00026.77
8.1.50.0110.00726.77
8.1.40.0190.00026.77
8.1.30.0140.00626.77
8.1.20.0180.00026.77
8.1.10.0140.00426.77
8.1.00.0160.00226.77

preferences:
40.14 ms | 403 KiB | 5 Q