3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php private function _getImagine() { if (!interface_exists('Imagine\Image\ImageInterface')) { if (file_exists(VENDORS . 'imagine.phar')) { include_once 'phar://' . VENDORS . 'imagine.phar'; } else { throw new CakeException( sprintf( 'Download imagine.phar: %s, and extract into vendor: %s', self::IMAGINE_URL, VENDORS ) ); } } return new \Imagine\Gd\Imagine(); }
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'private' (T_PRIVATE) in /in/70sJo on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_PRIVATE in /in/70sJo on line 3
Process exited with code 255.