3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo get_class(new class() {});
Output for 7.3.0beta1
class@anonymous/in/9rVCI0x7f3174b57023
Output for 7.3.0alpha1
class@anonymous/in/9rVCI0x7fb3c2e04023
Output for 7.2.6
class@anonymous/in/9rVCI0x7f5f823ab023
Output for 7.2.5
class@anonymous/in/9rVCI0x7f09288bd023
Output for 7.2.0
class@anonymous/in/9rVCI0x7ff838731023
Output for 7.1.20
class@anonymous/in/9rVCI0x7f1ecab32023
Output for 7.1.7
class@anonymous/in/9rVCI0x7f1244da8023
Output for 7.1.6
class@anonymous/in/9rVCI0x7f84cf96a023
Output for 7.1.5
class@anonymous/in/9rVCI0x7f1954634023
Output for 7.1.1
class@anonymous/in/9rVCI0x7f3fb6297023
Output for 7.1.0
class@anonymous/in/9rVCI0x7f6aad26f023
Output for 7.0.20
class@anonymous/in/9rVCI0x7fc8618bc023
Output for 7.0.14
class@anonymous/in/9rVCI0x7fd3262fd023
Output for 7.0.13
class@anonymous/in/9rVCI0x7ff29922e023
Output for 7.0.12
class@anonymous/in/9rVCI0x7f457da20023
Output for 7.0.11
class@anonymous/in/9rVCI0x7faced7ae023
Output for 7.0.10
class@anonymous/in/9rVCI0x7f5415686023
Output for 7.0.9
class@anonymous/in/9rVCI0x7f524945e023
Output for 7.0.8
class@anonymous/in/9rVCI0x7f616d789023
Output for 7.0.7
class@anonymous/in/9rVCI0x7f9e9d327023
Output for 7.0.6
class@anonymous/in/9rVCI0x7fd72befb023
Output for 7.0.5
class@anonymous/in/9rVCI0x7f0dcc3a8023
Output for 7.0.4
class@anonymous/in/9rVCI0x7f9fda8a8023
Output for 7.0.3
class@anonymous/in/9rVCI0x7f522fd13023
Output for 7.0.2
class@anonymous/in/9rVCI0x7f73501ca023
Output for 7.0.1
class@anonymous/in/9rVCI0x7f1faf7f5023
Output for 7.0.0
class@anonymous/in/9rVCI0x7f282bfb3023
Output for 5.6.0 - 5.6.29
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/9rVCI on line 3
Process exited with code 255.