4 public function __toDebugDisplay() { return "lol"; }
8 public function __toDebugDisplay() { throw new Exception("lol"); }
12 public function __toDebugDisplay() { throw new Error(2.0); }
16 public function __toDebugDisplay() { __hhvm_intrinsics\trigger_oom
(true); }
19 function test($thing) {
20 echo "==== " . get_class($thing) . " ====\n";
21 // 9 == VariableSerializer::Type::DebuggerSerialize
22 var_dump(__hhvm_intrinsics\
serialize_with_format($thing, 9));