3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function NukesSpam($input) { return preg_replace('/<img(.*?)src=.http(.*?)domain\.com(.*?)>/', '<img src="http://standardsurvival.com/faces/64/drusz.png">', $input); } echo NukesSpam('<img src="http://www.domain.com/test1.jpg">');
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
<img src="http://standardsurvival.com/faces/64/drusz.png">
Output for hhvm-3.10.0

Process exited with code 153.