3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function getTopcheckSupportTeam() { return [ 0 => [ 'name' => 'Akin', 'surname' => 'A', 'face' => 'email_face_akin.png' ], 1 => [ 'name' => 'Ore', 'surname' => 'A', 'face' => 'email_face_ore.png' ], 2 => [ 'name' => 'Tomiwa', 'surname' => 'A', 'face' => 'email_face_tomiwa.png' ] ]; } function getRandomSupportGuy() { $team = self::getTopcheckSupportTeam(); return $team[rand(0, $team . length)]; } print_r(getRandomSupportGuy());
Output for 7.0.0 - 7.0.2
Fatal error: Cannot use "self" when no class scope is active in /in/XbkNX on line 25
Process exited with code 255.
Output for 5.4.12 - 5.6.17
Fatal error: Cannot access self:: when no class scope is active in /in/XbkNX on line 25
Process exited with code 255.
Output for 5.3.22 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/XbkNX on line 4
Process exited with code 255.