3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class User { public $name = 'Paulo'; } class Post { public $name = 'Paulo'; public function check(User $user) { return $user->name === $this->name; } } $user = new User; $post = new Post; $post->check($user); ?>
based on JDQu4
Output for 5.6.0 - 7.3.0alpha1