3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php /** * Zend Framework (http://framework.zend.com/) * * @link http://github.com/zendframework/zf2 for the canonical source repository * @copyright Copyright (c) 2005-2015 Zend Technologies USA Inc. (http://www.zend.com) * @license http://framework.zend.com/license/new-bsd New BSD License */ /** * Return header name * * @return string */ public function getFieldName() { return 'Location'; }
based on ZovOE
Output for 7.0.0
Parse error: syntax error, unexpected 'public' (T_PUBLIC), expecting end of file in /in/5INWS on line 16
Process exited with code 255.
Output for 5.4.10 - 5.6.16
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/5INWS on line 16
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_PUBLIC in /in/5INWS on line 16
Process exited with code 255.