3v4l.org

run code in 300+ PHP versions simultaneously
<?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/ubbRf 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/ubbRf on line 3
Process exited with code 255.

preferences:
173.15 ms | 1395 KiB | 53 Q