3v4l.org

run code in 300+ PHP versions simultaneously
<?php $attribute = 'name <>'; $split = preg_split('#(.*)\s?\B(<=>|<=|>=|<>|<|>|!=|=|not|between)\B#i', $attribute, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); print_r($split);

preferences:
37.09 ms | 402 KiB | 5 Q