3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = "abcdefffefa"; $b = "afe"; print(str_replace(array_unique(explode('', $b)), '', $a));
based on WqSSI
Output for 5.3.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: explode(): Empty delimiter in /in/ijL4Y on line 6 Warning: array_unique() expects parameter 1 to be array, boolean given in /in/ijL4Y on line 6 abcdefffefa
Output for hhvm-3.10.0 - 3.12.0
Warning: Invalid argument: delimiter: (empty) in /in/ijL4Y on line 6 Warning: Invalid operand type was used: expects array(s) in /in/ijL4Y on line 6 abcdefffefa
Output for 5.2.5 - 5.2.17
Warning: explode(): Empty delimiter in /in/ijL4Y on line 6 Warning: array_unique(): The argument should be an array in /in/ijL4Y on line 6 abcdefffefa
Output for 4.3.2 - 5.2.4
Warning: explode(): Empty delimiter. in /in/ijL4Y on line 6 Warning: array_unique(): The argument should be an array in /in/ijL4Y on line 6 abcdefffefa
Output for 4.3.0 - 4.3.1
Warning: explode() [http://www.php.net/function.explode]: Empty delimiter. in /in/ijL4Y on line 6 Warning: array_unique() [http://www.php.net/function.array-unique]: The argument should be an array in /in/ijL4Y on line 6 abcdefffefa