3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $str="word1<>word2<>word3<>word4"; $arr=preg_split('#<>#i',$str); print_r($arr); $arr2=explode("<>",$str); print_r($arr2);
Output for 4.3.0 - 7.1.0
Array ( [0] => word1 [1] => word2 [2] => word3 [3] => word4 ) Array ( [0] => word1 [1] => word2 [2] => word3 [3] => word4 )