3v4l.org

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

preferences:
64.27 ms | 404 KiB | 5 Q