3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Foo { } var_dump( get_class(new class implements Foo {}), get_class(new class implements Foo {}) );
based on bcc8J
Output for 7.2.6
string(39) "class@anonymous/in/s6fm10x7f1d9462204c" string(39) "class@anonymous/in/s6fm10x7f1d94622078"
Output for 7.2.0
string(39) "class@anonymous/in/s6fm10x7f181c15f04c" string(39) "class@anonymous/in/s6fm10x7f181c15f078"
Output for 7.1.20
string(39) "class@anonymous/in/s6fm10x7efebaeff04c" string(39) "class@anonymous/in/s6fm10x7efebaeff078"
Output for 7.1.7
string(39) "class@anonymous/in/s6fm10x7f52f5e5b04c" string(39) "class@anonymous/in/s6fm10x7f52f5e5b078"
Output for 7.1.6
string(39) "class@anonymous/in/s6fm10x7fcc3571604c" string(39) "class@anonymous/in/s6fm10x7fcc35716078"
Output for 7.1.5
string(39) "class@anonymous/in/s6fm10x7f0eedd4804c" string(39) "class@anonymous/in/s6fm10x7f0eedd48078"
Output for 7.1.4
string(39) "class@anonymous/in/s6fm10x7f1a7f9cf04c" string(39) "class@anonymous/in/s6fm10x7f1a7f9cf078"
Output for 7.1.3
string(39) "class@anonymous/in/s6fm10x7f7a4b76c04c" string(39) "class@anonymous/in/s6fm10x7f7a4b76c078"
Output for 7.1.2
string(39) "class@anonymous/in/s6fm10x7fde2043904c" string(39) "class@anonymous/in/s6fm10x7fde20439078"
Output for 7.1.1
string(39) "class@anonymous/in/s6fm10x7fc42789804c" string(39) "class@anonymous/in/s6fm10x7fc427898078"
Output for 7.1.0
string(39) "class@anonymous/in/s6fm10x7f7a9afdb04c" string(39) "class@anonymous/in/s6fm10x7f7a9afdb078"
Output for 7.0.20
string(39) "class@anonymous/in/s6fm10x7fa868c5004c" string(39) "class@anonymous/in/s6fm10x7fa868c50078"
Output for 7.0.19
string(39) "class@anonymous/in/s6fm10x7f07b450204c" string(39) "class@anonymous/in/s6fm10x7f07b4502078"
Output for 7.0.18
string(39) "class@anonymous/in/s6fm10x7f72d16f104c" string(39) "class@anonymous/in/s6fm10x7f72d16f1078"
Output for 7.0.17
string(39) "class@anonymous/in/s6fm10x7f329c81604c" string(39) "class@anonymous/in/s6fm10x7f329c816078"
Output for 7.0.16
string(39) "class@anonymous/in/s6fm10x7fe492c9704c" string(39) "class@anonymous/in/s6fm10x7fe492c97078"
Output for 7.0.15
string(39) "class@anonymous/in/s6fm10x7f51f439c04c" string(39) "class@anonymous/in/s6fm10x7f51f439c078"
Output for 7.0.14
string(39) "class@anonymous/in/s6fm10x7f928801e04c" string(39) "class@anonymous/in/s6fm10x7f928801e078"
Output for 7.0.13
string(39) "class@anonymous/in/s6fm10x7ffaf0d5304c" string(39) "class@anonymous/in/s6fm10x7ffaf0d53078"
Output for 7.0.12
string(39) "class@anonymous/in/s6fm10x7ff3b0ebb04c" string(39) "class@anonymous/in/s6fm10x7ff3b0ebb078"
Output for 7.0.11
string(39) "class@anonymous/in/s6fm10x7fbbb520f04c" string(39) "class@anonymous/in/s6fm10x7fbbb520f078"
Output for 7.0.10
string(39) "class@anonymous/in/s6fm10x7fa7f110504c" string(39) "class@anonymous/in/s6fm10x7fa7f1105078"
Output for 7.0.9
string(39) "class@anonymous/in/s6fm10x7f46e8dfb04c" string(39) "class@anonymous/in/s6fm10x7f46e8dfb078"
Output for 7.0.8
string(39) "class@anonymous/in/s6fm10x7f7e3d8df04c" string(39) "class@anonymous/in/s6fm10x7f7e3d8df078"
Output for 7.0.7
string(39) "class@anonymous/in/s6fm10x7f760eb0b04c" string(39) "class@anonymous/in/s6fm10x7f760eb0b078"
Output for 7.0.6
string(39) "class@anonymous/in/s6fm10x7f2b47b1b04c" string(39) "class@anonymous/in/s6fm10x7f2b47b1b078"
Output for 7.0.5
string(39) "class@anonymous/in/s6fm10x7f8045d1104c" string(39) "class@anonymous/in/s6fm10x7f8045d11078"
Output for 7.0.4
string(39) "class@anonymous/in/s6fm10x7fb150e9904c" string(39) "class@anonymous/in/s6fm10x7fb150e99078"
Output for 7.0.3
string(39) "class@anonymous/in/s6fm10x7f8aecdc404c" string(39) "class@anonymous/in/s6fm10x7f8aecdc4078"
Output for 7.0.2
string(39) "class@anonymous/in/s6fm10x7f6c7967f04c" string(39) "class@anonymous/in/s6fm10x7f6c7967f078"
Output for 7.0.1
string(39) "class@anonymous/in/s6fm10x7ff86636c04c" string(39) "class@anonymous/in/s6fm10x7ff86636c078"
Output for 7.0.0
string(39) "class@anonymous/in/s6fm10x7f8f49d4704c" string(39) "class@anonymous/in/s6fm10x7f8f49d47078"
Output for hhvm-3.15.4
string(31) "class@anonymous$Foo::;143368685" string(33) "class@anonymous$Foo::#2;143368685"
Output for 5.6.0 - 5.6.30
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/s6fm1 on line 8
Process exited with code 255.