3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php interface FF_SubTypes { const FF = "FlixFling"; const GH = "Grindhouse"; const FR = "FrightFlix"; const KF = "KidsFlix"; const SD = "ScreenDreams"; } class MyClass implements FF_SubTypes {} $myClass = new MyClass(); var_dump(get_defined_constants($myClass));
based on CFK5i
Output for 5.3.7 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: get_defined_constants() expects parameter 1 to be boolean, object given in /in/UAOkP on line 13 NULL