3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $string = preg_replace('\b(https?|ftp|file)://[-A-Z0-9+&@#/%?=~_|!:,.;]*[-A-Z0-9+&@#/%=~_|]', '', $string); $string = "Here is another funny site here we.Go to the"; echo "Cleaned: " . cleaner($url);
based on Z8IaZ
Output for 7.0.0 - 7.1.0
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Uncaught Error: Call to undefined function cleaner() in /in/cWHrQ:6 Stack trace: #0 {main} thrown in /in/cWHrQ on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 5.0.4 - 5.6.28
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 5.0.0 - 5.0.3
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function: cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 4.3.11 - 4.4.4
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: preg_replace(): Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function: cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.10
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function: cleaner() in /in/cWHrQ on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Notice: Undefined variable: string in /in/cWHrQ on line 3 Warning: Delimiter must not be alphanumeric or backslash in /in/cWHrQ on line 3 Fatal error: Call to undefined function: cleaner() in /in/cWHrQ on line 6