3v4l.org

run code in 300+ PHP versions simultaneously
<?php $help_path = 'http:xxx.com/wp-content/help/'; $contents = <<<MYVAR <img src="../Links/WAS_PIC_ControlBox-1-2-3.jpg" alt="WAS-Betjeningsboks-1-2-3" style="border: none; margin-left: 20px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;" border="0"> <script type="text/javascript" src="../ehlpdhtm.js"></script> MYVAR; $find = array( '#<script\s+type="(.*?)"\s+src="(?:\.{2}/)?(.*?)">(.*?)</script>#is', '#<img\s+src="(?:\.{2}/)?(.*?)"\s+alt="(.*?)"([^>]*?)/?>#i' ); $replace = array( '<script type="${1}" src="' . $help_path . '${2}"></script>', '<img src="' . $help_path . '${1}" alt="${2}"${3} />' ); $preg_rep = preg_replace($find, $replace, $contents); print_r($preg_rep);
Output for git.master, git.master_jit, rfc.property-hooks
<img src="http:xxx.com/wp-content/help/Links/WAS_PIC_ControlBox-1-2-3.jpg" alt="WAS-Betjeningsboks-1-2-3" style="border: none; margin-left: 20px; margin-right: 0px; margin-top: 0px; margin-bottom: 0px;" border="0" /> <script type="text/javascript" src="http:xxx.com/wp-content/help/ehlpdhtm.js"></script>

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:
145.91 ms | 406 KiB | 5 Q