3v4l.org

run code in 300+ PHP versions simultaneously
<?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);

preferences:
57.74 ms | 402 KiB | 5 Q