3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php protected function processSites($site_ids) { if ( is_numeric($site_ids) ) { $site_ids = array($site_ids); } if ( !is_array($site_ids) ) { var_export($site_ids); self::throwError(self::INVALID_SITES); } $sites = Doctrine::getTable('Site')->createQuery()->whereIn('id', $site_ids)->execute(); if ( !$sites || count($sites) != count($site_ids) ) { self::throwError(self::INVALID_SITES); } $sites_by_id = array(); foreach ($sites as $site) { $this->checkSite($site); $sites_by_id[$site->id] = $site; } $this->sites = $sites_by_id; return $this; }
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected 'protected' (T_PROTECTED) in /in/P47KM on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PROTECTED in /in/P47KM on line 3
Process exited with code 255.