3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace A { function myFunction() {} const MY_CONSTANT = 0; } namespace B { use function A\myFunction; use const A\MY_CONSTANT; var_dump( myFunction::class, MY_CONSTANT::class ); }

preferences:
31.96 ms | 407 KiB | 5 Q