3v4l.org

run code in 300+ PHP versions simultaneously
<?php declare(strict_types=1); namespace Forum; class Message {} namespace Messenger; class Message {} $forumMessage = new \Forum\Message; $messengerMessage = new \Messenger\Message; var_dump($forumMessage::class); var_dump($messengerMessage::class);

preferences:
38.96 ms | 404 KiB | 5 Q