3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getSitesUserHasAccess($login){ $acls = self::getAclsForUser($login); $idsites = array_keys($acls); if($login != 'admin'){ $idsites=implode(',', $idsites); $siteUrls = LeadForce1_FetchAll("select idsite, main_url from ".LeadForce1::prefixTable('site')." where idsite in($idsites) order by main_url"); } else { $siteUrls = LeadForce1_FetchAll('select idsite, main_url from '.LeadForce1::prefixTable('site').' order by main_url'); } return $siteUrls; } ?>
based on 9EnS6
Output for 4.3.0 - 5.6.28