3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $template = '<script type="text/javascript" src="%s"></script><noscript><img src="%s" /></noscript>'; echo sprintf($template, 'http://google.com', 'http://google.com'); $parts = explode('%s', $template); print_r($parts);
Output for 4.3.0 - 7.1.0
<script type="text/javascript" src="http://google.com"></script><noscript><img src="http://google.com" /></noscript>Array ( [0] => <script type="text/javascript" src=" [1] => "></script><noscript><img src=" [2] => " /></noscript> )