3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = array ( '01.02', '01.03', '02.05', '02.07' ); $matches = preg_grep ('/^01/i', $haystack); print_r ($matches);

preferences:
57.96 ms | 402 KiB | 5 Q