3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait Foo { public function bar() { echo "Hi!"; } } $ref = new ReflectionClass('Foo'); var_dump($ref->isAbstract(), $ref->isCloneable());
based on s6iu9
Output for 7.0.0 - 7.2.0
bool(false) bool(false)
Output for 5.4.11 - 5.6.28
bool(true) bool(false)
Output for 5.3.21 - 5.3.29
Parse error: syntax error, unexpected T_STRING in /in/fNtVI on line 3
Process exited with code 255.