3v4l.org

run code in 500+ PHP versions simultaneously
<?php $buffer = <<<HTML <p>This is an XPath: <code>/HTML/BODY/*[1][self::DIV]</code></p> <p>This is a Script:</p> <pre class="wp-block-code"><code>&lt;script> /* example script */ &lt;/script></code></pre> <p data-od-xpath="/HTML/BODY//*[4][self::P]">This has an XPath in a data attribute.</p> <pre class="wp-block-code"><code>&lt;style> /* example style */ &lt;/style></code></pre> HTML; // The following line comes from <https://plugins.trac.wordpress.org/browser/aruba-hispeed-cache/tags/2.0.24/src/AHSC_HtmlOptimizer.php#L16>: $buffer_after_comments_removed = preg_replace( '@\/\*(.*?)\*\/@s', ' ', $buffer ); //remove comment if ( $buffer_after_comments_removed === $buffer ) { echo "PASS\n"; } else { echo "FAIL\n"; } echo "\n"; echo "Result after regex attempts to remove comments:\n"; echo "\n"; echo "$buffer_after_comments_removed";
Output for rfc.property-hooks, git.master, git.master_jit
FAIL Result after regex attempts to remove comments: <p>This is an XPath: <code>/HTML/BODY &lt;/script></code></pre> <p data-od-xpath="/HTML/BODY/ &lt;/style></code></pre>

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
60.96 ms | 2763 KiB | 4 Q