3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Person { public function name($name) { return $this>name($name); } } $user = new Person; var_dump($user->name('chris'));
based on DeGDd
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Error: Call to undefined function name() in /in/Ntd49:6 Stack trace: #0 /in/Ntd49(13): Person->name('chris') #1 {main} thrown in /in/Ntd49 on line 6
Process exited with code 255.
Output for 5.3.17 - 5.6.28
Fatal error: Call to undefined function name() in /in/Ntd49 on line 6
Process exited with code 255.