3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variable = "asdfasdg <img src=\"foo.jpg\"> asdgfasdgasdg"; print preg_replace("~src=\"([^\"])\.(jpg|png|gif)\"~iu", "=src\"$1.$2?style=grid\"", $variable));
Output for 5.3.0 - 5.4.26
Parse error: syntax error, unexpected ')' in /in/CIJYd on line 3
Process exited with code 255.