3v4l.org

run code in 300+ PHP versions simultaneously
<?php // Ресурс нумерации class NumresController extends Zend_Controller_Action { public function clientviewAction() { $this->view->pageTitle = 'Получение ресурса нумерации - ТелекомКонсалтинг'; $auth = Zend_Auth::getInstance(); $storage = $auth->getStorage()->read(); if ($storage->role == 'client') { $this->_helper->layout->setLayout('alt'); } if (isset($storage->role)) { $numresModel = new Model_Table_Numres(); $userModel = new Model_Table_User(); $organisationModel = new Model_Table_Organisation(); $numresId = $this->_request->getParam('id'); if (isset($numresId) && trim($numresId) != '' && $numresId > 0) { $numres = $numresModel->getNumres($numresId); $host = $userModel->getById($numres['hostId']); $executor = $userModel->getById($numres['executorId']); $organisation = $organisationModel->getOrganisation($numres['organisationId']); $inv = $numresModel->getInvolved($numresId); $temp = array(); foreach ($inv as $el) { $temp[] = $userModel->getById($el); } $inv = $temp; $this->view->involved = $temp; $billModel = new Model_Table_Bills(); $bills = $billModel->getBillsTask(5, $numresId); $this->view->bills = $bills; $fileForm = new Form_Files(); $fileForm->getElement('trackerId')->setValue(5); $fileForm->getElement('taskId')->setValue($numresId); $this->view->fileForm = $fileForm; $notes = new Model_Table_Notes(); $taskNotes = $notes->getTaskNotes($numresId, 5); $this->view->taskNotes = $taskNotes; $fileModel = new Model_Table_File(); $files = $fileModel->getFiles(5, $numresId); $this->view->files = $files; $sendsModel = new Model_Table_Sends(); $sends = $sendsModel->getSends(5, $numresId); $this->view->sends = $sends; $this->view->numres = $numres; //$lic = new Model_Table_Licenses(); //$this->view->licensescount = $lic->getListCount($packetId); $this->view->host = $host; $this->view->organisation = $organisation; $this->view->executor = $executor; $this->view->userId = $storage->id; } else { $this->_redirect('/error/error'); } } else { $this->_redirect('/organisation/login'); } }
Output for 5.4.0 - 5.4.24
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /in/veFSV on line 72
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /in/veFSV on line 72
Process exited with code 255.

preferences:
197.8 ms | 1395 KiB | 61 Q