-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
66 lines (55 loc) · 1.18 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
require 'src/Dump.php';
class FooBar
{
private $inherited_int = 123;
private $inherited_bool = ['string'];
}
class Bar extends FooBar
{
private $inherited_float = 0.22;
private $inherited_bool = 1 == '1';
}
class Foo extends Bar
{
private $string = 'string';
protected $int = 10;
public $array = [
'foo' => 'bar'
];
protected static $bool = false;
public static $foo = null;
}
Foo::$foo = new Foo();
$string = 'Foobar';
$array = ['foo', 'bar'];
$int = 327626;
$double = 22.223;
$null = null;
$bool = true;
$resource = fopen('LICENSE', 'r');
$m = microtime(true);
new Dump(new Foo, $string, $array, $int, $double, $null, $bool, [
'foo' => 'bar',
'bar' => 'foo',
[
'foo' => 'foobar',
'bar_foo',
2 => 'foo',
'foo' => [
'barbar' => 55,
'foofoo' => false,
'foobar' => null,
]
]
], $resource);
new Dump(1 == '1', 1 === '1');
function dump()
{
Dump::setTraceOffset(2);
new Dump(...func_get_args());
}
dump('foo', 22, 'bar', true);