3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $o = new class { }; var_dump(get_class($o));
Output for 7.2.0
string(39) "class@anonymous/in/KoJdD0x7feacf69a01d"
Output for 7.1.10
string(39) "class@anonymous/in/KoJdD0x7f6c23cb901d"
Output for 7.1.7
string(39) "class@anonymous/in/KoJdD0x7fc4a7c0901d"
Output for 7.1.6
string(39) "class@anonymous/in/KoJdD0x7fa5146d201d"
Output for 7.1.5
string(39) "class@anonymous/in/KoJdD0x7f5b8a9ec01d"
Output for 7.1.0
string(39) "class@anonymous/in/KoJdD0x7f5303a2301d"
Output for 7.0.20
string(39) "class@anonymous/in/KoJdD0x7f314dbd101d"
Output for 7.0.6
string(39) "class@anonymous/in/KoJdD0x7f5f4981b01d"
Output for 7.0.5
string(39) "class@anonymous/in/KoJdD0x7f0b68c5901d"
Output for 7.0.4
string(39) "class@anonymous/in/KoJdD0x7f29594ad01d"
Output for 7.0.3
string(39) "class@anonymous/in/KoJdD0x7f5beb14201d"
Output for 7.0.2
string(39) "class@anonymous/in/KoJdD0x7ff67642c01d"
Output for 7.0.1
string(39) "class@anonymous/in/KoJdD0x7efd3c84d01d"
Output for 7.0.0
string(39) "class@anonymous/in/KoJdD0x7f2b685b401d"
Output for 5.4.9 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/KoJdD on line 3
Process exited with code 255.
Output for 5.3.19 - 5.3.29
Parse error: syntax error, unexpected T_CLASS in /in/KoJdD on line 3
Process exited with code 255.