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.3.1
string(45) "class@anonymous/in/SSoYl0x7fbacf82e040 blah!"
Output for 7.3.0
string(45) "class@anonymous/in/SSoYl0x7fab62b4c040 blah!"
Output for 7.2.13
string(45) "class@anonymous/in/SSoYl0x7f812a018040 blah!"
Output for 7.2.12
string(45) "class@anonymous/in/SSoYl0x7fe8e438d040 blah!"
Output for 7.2.11
string(45) "class@anonymous/in/SSoYl0x7fcd5b7b2040 blah!"
Output for 7.2.10
string(45) "class@anonymous/in/SSoYl0x7feb54340040 blah!"
Output for 7.2.9
string(45) "class@anonymous/in/SSoYl0x7f9e978aa040 blah!"
Output for 7.2.8
string(45) "class@anonymous/in/SSoYl0x7f23e9b9b040 blah!"
Output for 7.2.7
string(45) "class@anonymous/in/SSoYl0x7f98b7494040 blah!"
Output for 7.2.6
string(45) "class@anonymous/in/SSoYl0x7f577de4b040 blah!"
Output for 7.2.5
string(45) "class@anonymous/in/SSoYl0x7fa7fbfa6040 blah!"
Output for 7.2.4
string(45) "class@anonymous/in/SSoYl0x7f9d9d947040 blah!"
Output for 7.2.3
string(45) "class@anonymous/in/SSoYl0x7fd4dc22c040 blah!"
Output for 7.2.2
string(45) "class@anonymous/in/SSoYl0x7f26fb96f040 blah!"
Output for 7.2.1
string(45) "class@anonymous/in/SSoYl0x7f2881e46040 blah!"
Output for 7.2.0
string(45) "class@anonymous/in/SSoYl0x7fd7284b6040 blah!"
Output for 7.1.25
string(45) "class@anonymous/in/SSoYl0x7fede01ec040 blah!"
Output for 7.1.20
string(45) "class@anonymous/in/SSoYl0x7fa458891040 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.