3v4l.org

run code in 200+ PHP versions simultaneously
<?php namespace NS; use function NS\foo; use const NS\BAR; function foo() { echo BAR; } const BAR = 3; foo();
Output for 7.2.0 - 7.4.6
3