3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $attribute = 'name <>'; $split = preg_split('#(.*)\s?(<=>|<=|>=|<>|<|>|!=|=)#i', $attribute, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE); print_r($split);
Output for 4.3.0 - 7.1.10
Array ( [0] => name < [1] => > )