3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str ="abc\tdef\t\t"; $str = str_replace("\t", " ", $str); Var_dump(explode(" ", $str));
based on VbfRL
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.2.0
array(4) { [0]=> string(3) "abc" [1]=> string(3) "def" [2]=> string(0) "" [3]=> string(0) "" }