3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( "0" => "BUILTIN\Administrators Allow FullControl", "1" => "CREATOR OWNER Allow FullControl", "2" => "NT AUTHORITY\SYSTEM Allow FullControl", "3" => "BUILTIN\Administrators Allow FullControl", "4" => "HTTPOOL\Managers (Slovenia) Allow FullControl" ); $maps = ""; foreach ($array as $permission) { if (strpos($permission, 'HTT') !== false) { $maps .= "<li>".$permission."</li>"; } } var_dump($maps);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(55) "<li>HTTPOOL\Managers (Slovenia) Allow FullControl</li>"