3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace Landing; class Landing { public $a = 'lol'; } namespace Stats; class Landing { public $a = 'test'; } $landingA = new \Landing\Landing(); $landingB = new \Stats\Landing(); var_dump($landingA->a); var_dump($landingB->a);
based on bCCrS
Output for 5.3.23 - 7.3.1
string(3) "lol" string(4) "test"