3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = array( 'Part1', 'Part2', 'Part3', 'Part4' ); $matches = preg_grep('/(?!Part)\d/', $haystack); print_r($matches);

preferences:
54.34 ms | 402 KiB | 5 Q