3v4l.org

run code in 300+ PHP versions simultaneously
<?php class User { /** * DEPRECATED */ static function getByUserID($id) { return self::getByID($id); } static function getByID($id) { $u = new User; $u->uid = $id; return $u; } } $u = User::getByUserID(1337); print_r($u);

preferences:
43.17 ms | 402 KiB | 5 Q