3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = new class(){}; echo get_class($a);
based on ppRHg
Output for 7.2.0
class@anonymous/in/2QSjS0x7ff3c15b8018
Output for 7.1.10
class@anonymous/in/2QSjS0x7fbf997d2018
Output for 7.1.7
class@anonymous/in/2QSjS0x7f53dbf27018
Output for 7.1.6
class@anonymous/in/2QSjS0x7fa9ac790018
Output for 7.1.5
class@anonymous/in/2QSjS0x7f4dae908018
Output for 7.1.0
class@anonymous/in/2QSjS0x7f055f5ac018
Output for 7.0.20
class@anonymous/in/2QSjS0x7f7bb86f4018
Output for 7.0.6
class@anonymous/in/2QSjS0x7fe7efcb1018
Output for 7.0.5
class@anonymous/in/2QSjS0x7fc0e608b018
Output for 7.0.4
class@anonymous/in/2QSjS0x7f6bfc7f4018
Output for 7.0.3
class@anonymous/in/2QSjS0x7f2f57ac0018
Output for 7.0.2
class@anonymous/in/2QSjS0x7efee4b3c018
Output for 7.0.1
class@anonymous/in/2QSjS0x7f5d3a093018
Output for 7.0.0
class@anonymous/in/2QSjS0x7f211781e018
Output for 5.4.2 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/2QSjS 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/2QSjS on line 3
Process exited with code 255.