3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface B{}; $a = new class()implements B{}; echo get_class($a);
based on GsYir
Output for 7.2.0
class@anonymous/in/cUrmP0x7fae1586b032
Output for 7.1.10
class@anonymous/in/cUrmP0x7f1256cf5032
Output for 7.1.7
class@anonymous/in/cUrmP0x7f6b4da85032
Output for 7.1.6
class@anonymous/in/cUrmP0x7fc70e9c3032
Output for 7.1.5
class@anonymous/in/cUrmP0x7fc17b73d032
Output for 7.1.0
class@anonymous/in/cUrmP0x7f07246fd032
Output for 7.0.20
class@anonymous/in/cUrmP0x7f0ca0de8032
Output for 7.0.6
class@anonymous/in/cUrmP0x7fb01bda3032
Output for 7.0.5
class@anonymous/in/cUrmP0x7f24b3c31032
Output for 7.0.4
class@anonymous/in/cUrmP0x7fa3af57d032
Output for 7.0.3
class@anonymous/in/cUrmP0x7f941015c032
Output for 7.0.2
class@anonymous/in/cUrmP0x7ffad15a3032
Output for 7.0.1
class@anonymous/in/cUrmP0x7fba9f86c032
Output for 7.0.0
class@anonymous/in/cUrmP0x7f06d7608032
Output for 5.4.2 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/cUrmP on line 3
Process exited with code 255.
Output for 5.3.17 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/cUrmP on line 3
Process exited with code 255.