3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace { define('DERP', 'derp'); define('Ozzie\Miauw\Woef\BLAAT', 'blaat'); } namespace Ozzie\Miauw\Woef { var_dump(DERP, BLAAT); define('Ozzie\Miauw\Woef\DERP', 'Ozzie'); var_dump(DERP); }

preferences:
24.39 ms | 405 KiB | 5 Q