3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php public function stuff($photo = null) { if (! isset($photo['member'])) { return ''; } if (! isset($photo['member']['name'])) { return ''; } return $photo['member']['name']; } stuff();
Output for 5.4.0 - 5.4.22
Parse error: syntax error, unexpected 'public' (T_PUBLIC) in /in/j8Cl7 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_PUBLIC in /in/j8Cl7 on line 4
Process exited with code 255.