3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php trait Bar { function __destruct() { echo "bar"; } } class Foo { use Bar; } new Foo();
Output for 7.0.20
bar