3v4l.org

run code in 300+ PHP versions simultaneously
<?php namespace \Foo \Bar; class A { static public function show() { echo static::class; } } class B extends A {} B::show();
based on JQAHT
Output for 8.0.0beta1 - rc2
Parse error: syntax error, unexpected fully qualified name "\Foo", expecting "{" in /in/pQOMe on line 3
Process exited with code 255.
Output for 8.0.0alpha3
Fatal error: Uncaught Error: Undefined constant "Foo\Bar" in /in/pQOMe:3 Stack trace: #0 {main} thrown in /in/pQOMe on line 3
Process exited with code 255.
Output for 7.2.0 - 7.2.33, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11, 8.0.0alpha1 - alpha2
Fatal error: Uncaught Error: Undefined constant 'Foo\Bar' in /in/pQOMe:3 Stack trace: #0 {main} thrown in /in/pQOMe on line 3
Process exited with code 255.