debug_zval_dump
PHP 4 >= 4.2.0, PHP 5, PHP 7, PHP 8
debug_zval_dump - Dumps a string representation of an internal zval structure to output
Example #1 debug_zval_dump example
Result: string(11) "Hello World" refcount(3)
Example #2
Result: string(11) "Hello World" refcount(2)