3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $GLOBALS['TL_CONFIG'] = array(); class Foo { protected $arrError = array ( '0' => array ( 'errType' => 'noError' ), '1' => array ( 'errType' => 'licenseCreateError', 'errMessage' => $GLOBALS['TL_CONFIG']['licenseCreateError'] ), '2' => array ( 'errType' => 'badRequestError', 'errMessage' => $GLOBALS['TL_CONFIG']['badRequestError'] ), '3' => array ( 'errType' => 'badLoginError', 'errMessage' => $GLOBALS['TL_CONFIG']['badLoginError'] ), '4' => array ( 'errType' => 'badReqTypeError', 'errMessage' => $GLOBALS['TL_CONFIG']['badReqTypeError'] ), '5' => array ( 'errType' => 'badProductIDError', 'errMessage' => $GLOBALS['TL_CONFIG']['badProductIDError'] ), '6' => array ( 'errType' => 'badDeviceIDError', 'errMessage' => $GLOBALS['TL_CONFIG']['badDeviceIDError'] ), '7' => array ( 'errType' => 'deviceInUseError', 'errMessage' => $GLOBALS['TL_CONFIG']['deviceInUseError'] ), '8' => array ( 'errType' => 'deviceLockedError', 'errMessage' => $GLOBALS['TL_CONFIG']['deviceLockedError'] ), '9' => array ( 'errType' => 'maxDevCountError', 'errMessage' => $GLOBALS['TL_CONFIG']['maxDevCountError'] ), '10' => array ( 'errType' => 'licenseExpiredError', 'errMessage' => $GLOBALS['TL_CONFIG']['licenseExpiredError'] ), '11' => array ( 'errType' => 'noLicenseError', 'errMessage' => $GLOBALS['TL_CONFIG']['noLicenseError'] ), '12' => array ( 'errType' => 'requestTimestampError', 'errMessage' => $GLOBALS['TL_CONFIG']['requestTimestampError'] ) ); }
Output for 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '$GLOBALS' (T_VARIABLE) in /in/stjT0 on line 16
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/stjT0 on line 16
Process exited with code 255.