3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // ini_set('hhvm.enable_obj_destruct_call', 1); var_dump(ini_get('hhvm.enable_obj_destruct_call')); class Aaa { public function __destruct() { echo "bye"; } } new Aaa;
based on u5I5n
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0beta1
bool(false) bye
Output for hhvm-3.18.5 - 3.22.0
string(1) "1" bye