3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $where = array('bla = :bla_kip2' => 12); $expression = null; foreach($where as $cond => $term) { if(preg_match('/(:\S+)/', $cond, $matches)) { $expression = $matches[1]; } } echo $expression;
Output for 4.3.0 - 7.1.0
:bla_kip2