<?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);
Warning: Undefined variable $string in /in/cWHrQ on line 3
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in /in/cWHrQ on line 3
Warning: preg_replace(): Delimiter must not be alphanumeric, backslash, or NUL 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 8.1.0 - 8.1.27
Warning: Undefined variable $string in /in/cWHrQ on line 3
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated 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 8.0.0 - 8.0.30
Warning: 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.
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 7.3.32 - 7.3.33
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.
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.0 - 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