3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $path = 'http://apache/www.posters.cz/js/default.js'; $stuff = ""; if(strpos($path, 'http://') !== false) { $stuff = preg_replace('/http://[a-z|.|0-9]*/', '', $path) } var_dump($stuff);
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '}' in /in/XeY5s on line 7
Process exited with code 255.