3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "18:00 UTC+1"; print_r(array_values($b = explode(" ", $a))); $needle = 'UTC'; $matches = array_filter($b, function ($haystack) use($needle) { return(strpos($haystack, $needle)); }); print_r($matches);
based on QdeMW
Output for 5.6.0 - 7.3.0rc4
Array ( [0] => 18:00 [1] => UTC+1 ) Array ( )