3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace Test { var_dump ( A \ B :: class ) ; var_dump ( \ B :: class ) ; }
Output for 8.0.0 - 8.0.11, 8.1rc1 - rc2
Parse error: syntax error, unexpected token "\", expecting ")" in /in/NRYbp on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.30, 7.4.0 - 7.4.23
string(8) "Test\A\B" string(1) "B"

preferences:
64.84 ms | 460 KiB | 5 Q