3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $e = new Exception(get_class(new class extends stdclass {})); var_dump($e->getMessage() . " blah!");
based on kNnA5
Output for 7.2.0
string(45) "class@anonymous/in/SSoYl0x7f2395694040 blah!"
Output for 7.1.10
string(45) "class@anonymous/in/SSoYl0x7f9406494040 blah!"
Output for 7.1.7
string(45) "class@anonymous/in/SSoYl0x7fb920843040 blah!"
Output for 7.1.6
string(45) "class@anonymous/in/SSoYl0x7f1a94a0e040 blah!"
Output for 7.1.5
string(45) "class@anonymous/in/SSoYl0x7f4533b02040 blah!"
Output for 7.1.0
string(45) "class@anonymous/in/SSoYl0x7f0625f27040 blah!"
Output for 7.0.20
string(45) "class@anonymous/in/SSoYl0x7ff770a73040 blah!"
Output for 7.0.6
string(45) "class@anonymous/in/SSoYl0x7f299153c040 blah!"
Output for 7.0.5
string(45) "class@anonymous/in/SSoYl0x7fef54297040 blah!"
Output for 7.0.4
string(45) "class@anonymous/in/SSoYl0x7f66353da040 blah!"
Output for 7.0.3
string(45) "class@anonymous/in/SSoYl0x7f89518d8040 blah!"
Output for 7.0.2
string(45) "class@anonymous/in/SSoYl0x7f2e6a8f8040 blah!"
Output for 7.0.1
string(45) "class@anonymous/in/SSoYl0x7fb506fa2040 blah!"
Output for 7.0.0
string(45) "class@anonymous/in/SSoYl0x7fdc8e5bc040 blah!"
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected 'class' (T_CLASS) in /in/SSoYl 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/SSoYl on line 3
Process exited with code 255.