<?php class A implements JsonSerializable { public function jsonSerialize() { return new A; } } echo "AAA\n"; var_dump( json_encode( new A ) ); echo "BBB\n";
You have javascript disabled. You will not be able to edit any code.