3v4l.org

run code in 500+ PHP versions simultaneously
<?php $strings = [ "quanity*price/2+tax", "quanity*price/2" ]; foreach ($strings as $string) { $keywords = preg_split("/[-*\/+\d]+/", $string, -1, PREG_SPLIT_NO_EMPTY); print_r($keywords); }

preferences:
22.22 ms | 475 KiB | 4 Q