3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array("Heloo", "HinT", "Joe - Test"); $result = preg_grep("/heloo/i", $a); if($result) { var_dump($result); }
based on c2Amf
Output for 4.3.0 - 7.2.0
array(1) { [0]=> string(5) "Heloo" }