3v4l.org

run code in 300+ 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:
27.78 ms | 405 KiB | 5 Q