3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface I {} function foo() { return new class { public static function foo() { return new class implements I {}; } }; } var_dump(get_class(foo()::foo()));
based on W50N9
Output for 7.3.0rc4
string(39) "class@anonymous/in/XLgQG0x7f4d7d71e090"
Output for 7.3.0rc3
string(39) "class@anonymous/in/XLgQG0x7f1936baa090"
Output for 7.3.0beta1
string(39) "class@anonymous/in/XLgQG0x7fedc4a70090"
Output for 7.3.0alpha1
string(39) "class@anonymous/in/XLgQG0x7f402faee090"
Output for 7.2.6
string(39) "class@anonymous/in/XLgQG0x7f6fdafa7090"
Output for 7.2.0
string(39) "class@anonymous/in/XLgQG0x7fa77cc7a090"
Output for 7.1.20
string(39) "class@anonymous/in/XLgQG0x7f02745ea090"
Output for 7.1.10
string(39) "class@anonymous/in/XLgQG0x7fcc743b6090"
Output for 7.1.7
string(39) "class@anonymous/in/XLgQG0x7f12f3bac090"
Output for 7.1.6
string(39) "class@anonymous/in/XLgQG0x7f0d8616d090"
Output for 7.1.5
string(39) "class@anonymous/in/XLgQG0x7f61aadba090"
Output for 7.1.0
string(39) "class@anonymous/in/XLgQG0x7f8b1e3b9090"
Output for 7.0.20
string(39) "class@anonymous/in/XLgQG0x7fa07af5d090"
Output for 7.0.6
string(39) "class@anonymous/in/XLgQG0x7fabb209b090"
Output for 7.0.5
string(39) "class@anonymous/in/XLgQG0x7fb132aec090"
Output for 7.0.4
string(39) "class@anonymous/in/XLgQG0x7fb946e12090"
Output for 7.0.3
string(39) "class@anonymous/in/XLgQG0x7f9a122c2090"
Output for 7.0.2
string(39) "class@anonymous/in/XLgQG0x7fdbfae34090"
Output for 7.0.1
string(39) "class@anonymous/in/XLgQG0x7f95d1f9f090"
Output for 7.0.0
string(39) "class@anonymous/in/XLgQG0x7f58a1aa9090"
Output for 5.4.10 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/XLgQG on line 5
Process exited with code 255.
Output for 5.3.20 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/XLgQG on line 5
Process exited with code 255.