3v4l.org

run code in 300+ PHP versions simultaneously
<?php $where = array('bla = :bla'); foreach($where as $cond => $term) { if(preg_match('/(:\s+)/', $cond, $matches)) { $expression = $cond; } } echo $expression;

preferences:
38.06 ms | 402 KiB | 5 Q