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>"; } }
Output for 4.3.0 - 7.1.0