CKTIS / PHP
var_dump()
Write diagnostic information about one or more values, including their types and string lengths in bytes.
Version: PHP 8.4; repository runtime, production runtime not attested
Syntax
var_dump(mixed $value, mixed ...$values): voidWrite diagnostic information about one or more values, including their types and string lengths in bytes. Arrays are traversed recursively. An object may control the displayed properties with __debugInfo(). Capture output buffering when the text itself is needed.
Signature
var_dump(mixed $value, mixed ...$values): void
Example output
string(3) "007"
int(7)
bool(false)
Examples
<?php
var_dump("007", 7, false);
Result
string(3) "007" int(7) bool(false)