3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = "<iframe class=\"elementor-video-iframe\" allowfullscreen src=\"https://player.vimeo.com/video/972057159?autoplay=1&amp;color&amp;autopause=0&amp;loop=0&amp;muted=0&amp;title=0&amp;portrait=0&amp;byline=0#t=\"></iframe>"; $document = new DOMDocument(); $document->loadHTML($html); $xpath = new DOMXpath($document); $url = $xpath->evaluate('string(//iframe[@class="elementor-video-iframe"]/@src)'); var_dump(preg_replace('([?#].*$)', '', $url)); var_dump(parse_url($url));

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.0160.00618.50
8.4.120.0050.00320.77
8.4.110.0110.00919.11
8.4.100.0120.00918.21
8.4.90.0110.01219.23
8.4.80.0110.00519.17
8.4.70.0120.00818.78
8.4.60.0140.00719.22
8.4.50.0120.00818.86
8.4.40.0170.00320.04
8.4.30.0120.00922.79
8.4.20.0130.00319.22
8.4.10.0090.00020.21
8.3.260.0050.00317.06
8.3.250.0130.00619.17
8.3.240.0130.00617.30
8.3.230.0130.00716.98
8.3.220.0110.00819.35
8.3.210.0080.00618.86
8.3.200.0040.00517.16
8.3.190.0100.01017.49
8.3.180.0110.00617.23
8.3.170.0060.01219.11
8.3.160.0120.00318.73
8.3.150.0110.00717.34
8.3.140.0100.01018.76
8.3.130.0000.01117.34
8.3.120.0000.00919.05
8.3.110.0080.00017.12
8.3.100.0090.00617.08
8.3.90.0080.00818.79
8.3.80.0060.00619.36
8.3.70.0030.01318.93
8.3.60.0150.00018.59
8.3.50.0120.00522.26
8.3.40.0080.00819.20
8.3.30.0090.00619.34
8.3.20.0120.00322.02
8.3.10.0000.00820.54
8.3.00.0040.00423.99
8.2.290.0080.01220.62
8.2.280.0090.01018.82
8.2.270.0120.00617.94
8.2.260.0040.00416.84
8.2.250.0100.00017.44
8.2.240.0070.00317.22
8.2.230.0050.00320.94
8.2.220.0080.00024.06
8.2.210.0040.00426.77
8.2.200.0050.00517.00
8.2.190.0060.01217.13
8.2.180.0100.01017.00
8.2.170.0130.01022.96
8.2.160.0140.00021.23
8.2.150.0070.00025.66
8.2.140.0060.00324.66
8.2.130.0000.00726.16
8.2.120.0040.00421.37
8.2.110.0060.00322.58
8.2.100.0070.01018.16
8.2.90.0030.00720.25
8.2.80.0000.00919.11
8.2.70.0000.00818.30
8.2.60.0000.00818.41
8.2.50.0040.00418.10
8.2.40.0040.00419.77
8.2.30.0040.00419.51
8.2.20.0030.00618.37
8.2.10.0040.00419.58
8.2.00.0040.00419.60
8.1.330.0020.00722.02
8.1.320.0100.00918.40
8.1.310.0030.00616.66
8.1.300.0040.00418.75
8.1.290.0060.00318.88
8.1.280.0130.00625.92
8.1.270.0050.00322.35
8.1.260.0030.00526.35
8.1.250.0040.00428.09
8.1.240.0030.00724.09
8.1.230.0070.00419.41
8.1.220.0040.00418.13
8.1.210.0040.00418.77
8.1.200.0070.00717.73
8.1.190.0040.00417.61
8.1.180.0030.00518.10
8.1.170.0030.00518.85
8.1.160.0070.00019.23
8.1.150.0000.00719.13
8.1.140.0000.00819.18
8.1.130.0060.00317.93
8.1.120.0050.00217.82
8.1.110.0000.00717.77
8.1.100.0040.00417.75
8.1.90.0040.00417.94
8.1.80.0040.00417.90
8.1.70.0000.00717.80
8.1.60.0050.00317.93
8.1.50.0040.00417.98
8.1.40.0040.00517.96
8.1.30.0080.00018.02
8.1.20.0040.00417.96
8.1.10.0030.00617.83
8.1.00.0040.00417.89
8.0.300.0000.00718.77
8.0.290.0090.00017.13
8.0.280.0050.00218.75
8.0.270.0000.00717.56
8.0.260.0030.00317.15
8.0.250.0060.00317.38
8.0.240.0060.00317.36
8.0.230.0070.00017.36
8.0.220.0070.00017.38
8.0.210.0050.00217.23
8.0.200.0000.00717.39
8.0.190.0080.00017.31
8.0.180.0000.00717.20
8.0.170.0060.00317.23
8.0.160.0030.00717.29
8.0.150.0050.00917.25
8.0.140.0000.00717.27
8.0.130.0000.00613.81
8.0.120.0080.00017.34
8.0.110.0080.00017.39
8.0.100.0000.00717.29
8.0.90.0060.00317.43
8.0.80.0040.01117.30
8.0.70.0080.00017.43
8.0.60.0000.00817.10
8.0.50.0020.00517.50
8.0.30.0110.00917.51
8.0.20.0110.00917.43
8.0.10.0000.00717.36
8.0.00.0120.00617.21
7.4.330.0030.00315.55
7.4.320.0060.00017.03
7.4.300.0040.00416.95
7.4.290.0000.00717.08
7.4.280.0040.00417.11
7.4.270.0000.00717.14
7.4.260.0070.00017.02
7.4.250.0050.00317.14
7.4.240.0050.00317.02
7.4.230.0030.00316.82
7.4.220.0040.00417.21
7.4.210.0070.00817.09
7.4.200.0080.00017.20
7.4.140.0120.01217.86
7.4.130.0080.01217.05
7.4.120.0100.00717.09
7.4.110.0100.01017.00
7.4.100.0090.01216.99
7.4.90.0030.01516.85
7.4.80.0100.00719.39
7.4.70.0140.00317.02
7.4.60.0100.00617.07
7.4.50.0030.00917.01
7.4.40.0090.00817.05
7.4.00.0080.00815.09
7.3.330.0000.00513.48
7.3.320.0030.00313.40
7.3.310.0000.00816.55
7.3.300.0030.00316.59
7.3.290.0030.00316.48
7.3.280.0100.01016.52
7.3.260.0100.01016.81
7.3.240.0130.00716.85
7.3.230.0100.00716.61
7.3.210.0150.00316.68
7.3.200.0120.00917.07
7.3.190.0030.01316.66
7.3.180.0090.00616.80
7.3.170.0050.01116.66
7.3.160.0140.00716.65
7.3.120.0100.00614.96
7.3.110.0030.01815.07
7.3.100.0100.00715.14
7.3.90.0100.00015.30
7.3.80.0030.00915.03
7.3.70.0070.00715.05
7.3.60.0030.01114.84
7.3.50.0060.00714.68
7.3.40.0050.00714.93
7.3.30.0060.00714.78
7.3.20.0090.01016.88
7.3.10.0060.00916.79
7.3.00.0060.00616.67
7.2.330.0120.00916.97
7.2.320.0040.01417.00
7.2.310.0160.00616.96
7.2.300.0040.01416.96
7.2.290.0070.01117.00
7.2.250.0070.00715.12
7.2.240.0040.01815.03
7.2.230.0150.00015.31
7.2.220.0040.01415.25
7.2.210.0030.01015.18
7.2.200.0070.01014.92
7.2.190.0060.00815.01
7.2.180.0070.00814.92
7.2.170.0060.00815.19
7.2.160.0000.01515.14
7.2.150.0080.00517.24
7.2.140.0090.00317.09
7.2.130.0040.00717.07
7.2.120.0050.00517.10
7.2.110.0090.00617.02
7.2.100.0040.01516.96
7.2.90.0040.01217.18
7.2.80.0060.00616.98
7.2.70.0100.00316.96
7.2.60.0100.00317.26
7.2.50.0100.01016.77
7.2.40.0060.00817.02
7.2.30.0130.01017.14
7.2.20.0110.00317.28
7.2.10.0030.00917.12
7.2.00.0090.01217.16
7.1.330.0000.01416.03
7.1.320.0080.00315.89
7.1.310.0060.00615.95
7.1.300.0070.00415.90
7.1.290.0070.00416.10
7.1.280.0120.00716.06
7.1.270.0060.00615.94
7.1.260.0070.00616.03
7.1.250.0030.00715.92

preferences:
28.02 ms | 403 KiB | 5 Q