3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function in_array_r($item , $array){ return preg_match('/"'. $item .'"/i' , json_encode($array)); } var_dump(in_array_r(preg_quote('Something (12) Pieces', '/'), array('title' => 'Something (12) Pieces')));
based on bfYsq
Output for 5.5.0 - 7.2.6
int(1)