3v4l.org

run code in 300+ PHP versions simultaneously
<?php $txt = <<<EOT <p>The breed was first...</p> <p>Semencic credits his...</p> <h1>Appearance</h1> <p>The breed's distinctive...</p> <p>It should be symmetrical...</p> <figure id="attachment_6" style="width: 840px" class="wp-caption alignnone"> <img class="size-large wp-image-6" src="...jpg" alt="boerboel appearance" width="840" height="746"> <figcaption class="wp-caption-text">The dog appearance.</figcaption> </figure> <h1>Requirements</h1> <p>Prospective owners....</p> <p>These dogs....</p> <h2>A Little Warning!</h2> <p>If you are considering...</p> <blockquote> <p>According to...</p> <p>Source: http://...</p> </blockquote> <p>Although more suitable...</p> EOT; $doc = new DOMDocument(); libxml_use_internal_errors(1); $doc->loadHTML( $txt, LIBXML_HTML_NOIMPLIED | LIBXML_HTML_NODEFDTD ); $xpath = new DOMXpath( $doc ); $nodes = $xpath->query( "/*/*" ); foreach( $nodes as $key => $node ) echo $node->nodeName . PHP_EOL;

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.70.0140.00418.68
8.3.60.0070.01118.87
8.3.50.0120.00822.28
8.3.40.0060.01619.13
8.3.30.0110.00719.17
8.3.20.0160.00319.09
8.3.10.0050.00322.23
8.3.00.0070.01118.15
8.2.190.0100.00717.25
8.2.180.0100.01018.66
8.2.170.0150.00322.96
8.2.160.0040.01121.24
8.2.150.0120.00324.18
8.2.140.0080.00024.66
8.2.130.0060.00318.18
8.2.120.0080.00826.35
8.2.110.0060.00321.38
8.2.100.0080.00418.28
8.2.90.0000.00818.22
8.2.80.0030.00517.97
8.2.70.0040.00417.98
8.2.60.0000.00918.15
8.2.50.0000.00818.07
8.2.40.0090.00021.63
8.2.30.0000.00820.39
8.2.20.0030.00618.00
8.2.10.0040.00418.57
8.2.00.0080.00018.73
8.1.280.0090.00625.92
8.1.270.0040.00424.42
8.1.260.0060.00328.09
8.1.250.0110.00328.09
8.1.240.0060.00322.73
8.1.230.0080.00421.60
8.1.220.0000.00818.29
8.1.210.0050.00319.59
8.1.200.0050.00517.98
8.1.190.0040.00417.85
8.1.180.0030.00518.10
8.1.170.0040.00419.27
8.1.160.0100.00022.32
8.1.150.0000.00719.25
8.1.140.0000.00720.02
8.1.130.0040.00418.12
8.1.120.0040.00417.84
8.1.110.0000.00817.86
8.1.100.0050.00317.77
8.1.90.0050.00317.85
8.1.80.0000.00717.88
8.1.70.0000.00717.95
8.1.60.0040.00417.89
8.1.50.0060.00317.83
8.1.40.0080.00017.85
8.1.30.0050.00317.98
8.1.20.0040.00417.95
8.1.10.0030.00617.95
8.1.00.0040.00417.81
8.0.300.0040.00420.48
8.0.290.0040.00417.38
8.0.280.0000.00718.76
8.0.270.0030.00317.71
8.0.260.0030.00317.66
8.0.250.0030.00317.34
8.0.240.0040.00417.43
8.0.230.0040.00417.35
8.0.220.0000.00817.38
8.0.210.0050.00517.27
8.0.200.0030.00317.37
8.0.190.0050.00317.29
8.0.180.0030.00317.32
8.0.170.0050.00317.41
8.0.160.0040.00417.28
8.0.150.0000.01317.37
8.0.140.0040.00417.31
8.0.130.0000.00613.76
8.0.120.0030.00617.27
8.0.110.0080.00017.41
8.0.100.0000.00717.32
8.0.90.0040.00417.49
8.0.80.0060.01317.36
8.0.70.0040.00417.40
8.0.60.0070.00017.21
8.0.50.0080.00017.16
8.0.30.0160.00317.53
8.0.20.0090.01017.57
8.0.10.0000.00717.26
8.0.00.0090.00917.27
7.4.330.0020.00215.08
7.4.320.0060.00016.89
7.4.300.0000.00616.94
7.4.290.0040.00417.05
7.4.280.0070.00416.85
7.4.270.0000.00816.76
7.4.260.0000.00916.84
7.4.250.0000.00717.04
7.4.240.0030.00317.01
7.4.230.0030.00317.11
7.4.220.0140.01317.04
7.4.210.0000.01416.87
7.4.200.0030.00416.98
7.4.160.0140.00716.89
7.4.150.0120.00617.40
7.4.140.0140.00617.86
7.4.130.0090.00916.99
7.4.120.0140.00516.95
7.4.110.0060.01016.91
7.4.100.0060.01216.67
7.4.90.0070.01017.09
7.4.80.0030.02119.39
7.4.70.0070.01016.96
7.4.60.0030.01317.00
7.4.50.0030.01316.98
7.4.40.0070.01416.76
7.4.30.0070.01016.96
7.4.00.0030.00915.01
7.3.330.0000.00513.46
7.3.320.0000.00513.54
7.3.310.0050.00316.66
7.3.300.0030.00316.72
7.3.290.0090.00716.76
7.3.280.0110.00616.69
7.3.270.0130.00317.40
7.3.260.0060.01216.66
7.3.250.0100.01016.75
7.3.240.0120.00616.90
7.3.230.0150.00316.83
7.3.210.0100.00616.87
7.3.200.0070.01116.99
7.3.190.0080.00816.91
7.3.180.0150.00317.11
7.3.170.0050.01616.73
7.3.160.0130.00616.88
7.2.330.0060.01317.12
7.2.320.0030.01316.92
7.2.310.0090.00916.88
7.2.300.0060.02216.86
7.2.290.0090.00917.13
7.2.80.0080.00316.69
7.2.60.0040.01117.40
7.2.00.0070.01019.72
7.1.200.0060.00616.05
7.1.100.0000.01118.25
7.1.70.0040.01117.33
7.1.60.0100.01319.54
7.1.00.0100.08322.46
7.0.200.0070.00317.09
7.0.60.0170.06020.13
7.0.50.0300.06720.50
7.0.40.0400.06020.57
7.0.30.0130.06320.59
7.0.20.0070.07020.48
7.0.10.0100.06320.49
7.0.00.0230.05320.58
5.6.280.0000.07720.96
5.6.210.0170.05720.96
5.6.200.0270.06321.20
5.6.190.0270.07721.30
5.6.180.0170.06721.23
5.6.170.0230.05321.24
5.6.160.0100.06721.19
5.6.150.0330.07321.39
5.6.140.0070.08321.21
5.6.130.0330.07021.33
5.6.120.0230.06321.17
5.6.110.0270.06021.18
5.6.100.0170.06321.32
5.6.90.0300.07021.23
5.6.80.0400.05020.72
5.6.70.0130.05720.62
5.6.60.0070.07020.59
5.6.50.0270.07020.62
5.6.40.0170.06320.64
5.6.30.0230.05320.56
5.6.20.0170.05320.60
5.6.10.0100.06320.60
5.6.00.0170.05720.59
5.5.350.0230.06720.67
5.5.340.0200.05721.01
5.5.330.0330.06720.94
5.5.320.0330.04721.04
5.5.310.0200.06321.02
5.5.300.0200.07020.96
5.5.290.0230.07721.00
5.5.280.0230.07321.02
5.5.270.0270.06721.00
5.5.260.0270.06720.99
5.5.250.0200.06320.87
5.5.240.0230.06720.44
5.5.230.0200.07320.36
5.5.220.0430.07020.55
5.5.210.0170.06320.51
5.5.200.0170.06020.36
5.5.190.0270.06020.52
5.5.180.0300.04720.29
5.5.160.0130.06020.33
5.5.150.0200.05320.32
5.5.140.0170.06320.35
5.5.130.0330.04720.34
5.5.120.0170.06720.48
5.5.110.0100.08020.48
5.5.100.0030.07320.21
5.5.90.0270.04320.26
5.5.80.0130.05720.24
5.5.70.0200.06020.25
5.5.60.0170.05320.32
5.5.50.0170.05020.23
5.5.40.0200.04720.28
5.5.30.0100.06020.21
5.5.20.0200.05320.26
5.5.10.0270.05020.25
5.5.00.0170.05720.17

preferences:
42.41 ms | 401 KiB | 5 Q