3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php namespace A\B\C; echo get_class(new class { });
Output for 7.2.0
class@anonymous/in/uP2EE0x7f45edb45039
Output for 7.1.10
class@anonymous/in/uP2EE0x7f2e987f5039
Output for 7.1.7
class@anonymous/in/uP2EE0x7f5891feb039
Output for 7.1.6
class@anonymous/in/uP2EE0x7f50e57e9039
Output for 7.1.5
class@anonymous/in/uP2EE0x7f956443c039
Output for 7.1.0
class@anonymous/in/uP2EE0x7f1354ee8039
Output for 7.0.20
class@anonymous/in/uP2EE0x7fef5043b039
Output for 7.0.6
class@anonymous/in/uP2EE0x7f27a1195039
Output for 7.0.5
class@anonymous/in/uP2EE0x7f4f1595e039
Output for 7.0.4
class@anonymous/in/uP2EE0x7fb3356dd039
Output for 7.0.3
class@anonymous/in/uP2EE0x7fa281ef3039
Output for 7.0.2
class@anonymous/in/uP2EE0x7fd3067c2039
Output for 7.0.1
class@anonymous/in/uP2EE0x7f610cc99039
Output for 7.0.0
class@anonymous/in/uP2EE0x7f011ca22039
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/uP2EE on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/uP2EE on line 5
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.2.17
Parse error: syntax error, unexpected T_STRING in /in/uP2EE on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_STRING in /in/uP2EE on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/uP2EE on line 3
Process exited with code 255.