3v4l.org

run code in 300+ PHP versions simultaneously
<?php $haystack = array ( '01.02', '01.03', '02.05', '02.07' ); $matches = preg_grep ('/cpb-grid-col-[0-9]/', $haystack); print_r ($matches);
based on 9cZUP
Output for 7.3.0 - 7.3.27, 7.4.0 - 7.4.16, 8.0.0 - 8.0.3
Array ( )