3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $in= <<<EOT <script type="text/javascript" src="http://easylearndev2.sdnag.local/jscripts/luna/core.js"></script> <script type="text/javascript" class="ls-content-master" src="//easylearndev2.sdnag.local/jscripts/luna/core.min.js?v=5.2.0"></script> <script type="text/javascript" class="ls-content-master" src="//easylearndev2.sdnag.local/jscripts/luna/learningwindow.contentiframe.min.js?v=5.2.0"></script> EOT; $re = array('/\<script type\="text\/javascript" src\="http\:\/\/easylearndev2\.sdnag\.local\/(\/jscripts\/luna\/core\.min\.js|\/jscripts\/luna\/core\.js|\/jscripts\/luna\/learningwindow\.contentiframe\.min\.js|\/jscripts\/luna\/learningwindow\.contentiframe\.js)"\>\<\/script\>/' => '<!-- LCVSVV5: duplicate script \\1 removed -->'); echo '<pre>'; var_dump(preg_replace(array_keys($re), $re, $in));
based on DUDBG
Output for 4.3.0 - 7.2.0
<pre>string(397) "<script type="text/javascript" src="http://easylearndev2.sdnag.local/jscripts/luna/core.js"></script> <script type="text/javascript" class="ls-content-master" src="//easylearndev2.sdnag.local/jscripts/luna/core.min.js?v=5.2.0"></script> <script type="text/javascript" class="ls-content-master" src="//easylearndev2.sdnag.local/jscripts/luna/learningwindow.contentiframe.min.js?v=5.2.0"></script>"