3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = '<iframe width="560" height="315" src="https://www.youtube.com/embed/W9k0OhJkjQ0" frameborder="0" allowfullscreen></iframe>'; $dom = new \DOMDocument( '1.0', 'UTF-8' ); // muted because malformed HTML cause warnings @$dom->loadXml( "<iframe_content>{$content}</iframe_content>" ); $domIframe = $dom->getElementsByTagName( 'iframe' ); // seems this iframe is not an iframe if ( ! $domIframe->length ) { echo 'No Iframe'; } /** @var \DOMElement $iframeNode */ $iframeNode = $domIframe->item( 0 ); $iframeNode->removeAttribute( 'width' ); $iframeNode->removeAttribute( 'height' ); echo $dom->saveHTML( $iframeNode );

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.3.60.0070.01018.55
8.3.50.0140.00416.32
8.3.40.0180.00018.91
8.3.30.0110.00319.23
8.3.20.0040.00420.71
8.3.10.0070.00022.32
8.3.00.0040.00417.91
8.2.180.0150.00418.71
8.2.170.0090.00922.96
8.2.160.0110.00420.65
8.2.150.0080.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00426.16
8.2.120.0060.00317.88
8.2.110.0030.00722.36
8.2.100.0080.00418.00
8.2.90.0040.00419.30
8.2.80.0040.00717.97
8.2.70.0090.00017.75
8.2.60.0040.00418.18
8.2.50.0000.00918.07
8.2.40.0040.00419.66
8.2.30.0000.00820.83
8.2.20.0040.00418.11
8.2.10.0040.00418.32
8.2.00.0000.00918.40
8.1.280.0070.00725.92
8.1.270.0040.00422.35
8.1.260.0000.00726.35
8.1.250.0040.01128.09
8.1.240.0100.00722.79
8.1.230.0090.00317.60
8.1.220.0000.00817.90
8.1.210.0080.00018.77
8.1.200.0030.00617.38
8.1.190.0000.00817.50
8.1.180.0040.00418.10
8.1.170.0080.00018.77
8.1.160.0000.00722.23
8.1.150.0060.00319.22
8.1.140.0030.00617.68
8.1.130.0030.00317.82
8.1.120.0040.00417.74
8.1.110.0080.00017.66
8.1.100.0000.00817.72
8.1.90.0040.00417.64
8.1.80.0040.00417.71
8.1.70.0040.00417.79
8.1.60.0000.00917.68
8.1.50.0040.00417.84
8.1.40.0080.00017.77
8.1.30.0030.00517.95
8.1.20.0030.00517.79
8.1.10.0000.00717.82
8.1.00.0020.00517.63
8.0.300.0070.00018.77
8.0.290.0070.00017.13
8.0.280.0070.00018.69
8.0.270.0000.00717.46
8.0.260.0080.00017.55
8.0.250.0000.00717.30
8.0.240.0030.00317.23
8.0.230.0000.00717.27
8.0.220.0000.00717.23
8.0.210.0070.00017.20
8.0.200.0070.00017.13
8.0.190.0030.00617.27
8.0.180.0080.00017.08
8.0.170.0050.00317.16
8.0.160.0000.00717.15
8.0.150.0050.00217.17
8.0.140.0000.00717.01
8.0.130.0000.00613.63
8.0.120.0030.00617.16
8.0.110.0000.00717.16
8.0.100.0030.00516.99
8.0.90.0030.00317.05
8.0.80.0060.00917.13
8.0.70.0040.00417.12
8.0.60.0000.00817.21
8.0.50.0040.00417.23
8.0.30.0070.01017.21
8.0.20.0110.00817.45
8.0.10.0000.00717.23
8.0.00.0120.00616.97
7.4.330.0000.00515.30
7.4.320.0000.00716.71
7.4.300.0000.00716.73
7.4.290.0000.00716.73
7.4.280.0040.00416.75
7.4.270.0030.00316.75
7.4.260.0000.00816.84
7.4.250.0000.00716.79
7.4.240.0060.00116.77
7.4.230.0000.00816.60
7.4.220.0150.00316.70
7.4.210.0100.00716.75
7.4.200.0000.00716.93
7.4.160.0090.00616.88
7.4.150.0060.01217.40
7.4.140.0130.01017.86
7.4.130.0110.00716.80
7.4.120.0110.01116.81
7.4.110.0110.00716.68
7.4.100.0120.00616.84
7.4.90.0070.01116.70
7.4.80.0130.00319.39
7.4.70.0170.00016.73
7.4.60.0030.01316.70
7.4.50.0030.00316.66
7.4.40.0000.01716.56
7.4.30.0120.00617.03
7.4.00.0000.01615.30
7.3.330.0030.00313.52
7.3.320.0060.00013.53
7.3.310.0030.00316.43
7.3.300.0030.00316.48
7.3.290.0070.00716.52
7.3.280.0080.00916.56
7.3.270.0080.00817.40
7.3.260.0030.01716.82
7.3.250.0110.00616.59
7.3.240.0100.01116.67
7.3.230.0100.00716.79
7.3.210.0100.01216.45
7.3.200.0140.00316.45
7.3.190.0030.01316.71
7.3.180.0040.01316.44
7.3.170.0070.01416.69
7.3.160.0140.00716.56
7.2.330.0140.00416.55
7.2.320.0030.02016.88
7.2.310.0070.01017.05
7.2.300.0090.00616.77
7.2.290.0090.01216.54
7.2.60.0060.01016.89
7.2.00.0060.01019.73
7.1.200.0000.01215.49
7.1.100.0040.00717.96
7.1.70.0000.00817.37
7.1.60.0000.02219.27
7.1.50.0100.00717.00
7.1.00.0100.06722.60
7.0.200.0040.00416.80
7.0.60.0300.07321.95
7.0.50.0070.05017.95
7.0.40.0130.08020.41
7.0.30.0370.06720.41
7.0.20.0230.04020.41
7.0.10.0000.05720.32
7.0.00.0030.07020.23
5.6.280.0100.05020.96
5.6.210.0030.07720.56
5.6.200.0100.08018.25
5.6.190.0030.09320.67
5.6.180.0100.05020.75
5.6.170.0330.07020.55
5.6.160.0170.07320.78
5.6.150.0130.03018.29
5.6.140.0030.04018.21
5.6.130.0130.04718.40
5.6.120.0170.07721.17
5.6.110.0000.04321.19
5.6.100.0130.06721.17
5.6.90.0070.04020.95
5.6.80.0100.08720.56
5.5.350.0030.07720.42
5.5.340.0030.04318.20
5.5.330.0130.07720.36
5.5.320.0000.05320.38
5.5.310.0230.04320.32
5.5.300.0130.07718.04
5.5.290.0070.04318.02
5.5.280.0100.08021.05
5.5.270.0100.07020.73
5.5.260.0130.07720.93
5.5.250.0130.08020.57
5.5.240.0030.06320.47
5.4.450.0900.05019.36
5.4.440.0670.07019.69
5.4.430.0970.04719.40
5.4.420.0800.06019.64
5.4.410.0700.05719.30
5.4.400.0630.06019.38
5.4.390.0830.07319.07
5.4.380.0530.05719.04
5.4.370.0770.05019.06
5.4.360.0730.06719.37
5.4.350.0700.05719.35
5.4.340.0800.06019.21
5.4.320.0670.04719.37
5.4.310.0570.06719.30
5.4.300.0700.05719.06
5.4.290.0700.06019.10
5.4.280.0730.06719.22
5.4.270.0730.04719.03
5.4.260.0830.06719.03
5.4.250.0830.04719.31
5.4.240.0670.06019.12
5.4.230.0600.05319.21
5.4.220.0730.05719.21
5.4.210.0530.05019.34
5.4.200.0100.05319.31
5.4.190.0030.06019.34
5.4.180.0000.06719.35
5.4.170.0570.07019.05
5.4.160.0600.05319.30
5.4.150.0570.05719.17
5.4.140.0770.04316.77
5.4.130.0700.05016.61
5.4.120.0800.04316.67
5.4.110.0800.06716.69
5.4.100.0730.04716.55
5.4.90.0600.05716.71
5.4.80.0700.03316.68
5.4.70.0000.07316.67
5.4.60.0030.06016.38
5.4.50.0000.05316.62
5.4.40.0330.06316.55
5.4.30.0230.04016.67
5.4.20.0270.07316.46

preferences:
51.61 ms | 400 KiB | 5 Q