-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.php
56 lines (47 loc) · 1.04 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
<?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 = array('string');
}
class Bar extends FooBar
{
private $inherited_float = 0.22;
private $inherited_bool = true;
}
class Foo extends Bar
{
private $string = 'string';
protected $int = 10;
public $array = array(
'foo' => 'bar'
);
protected static $bool = false;
}
$string = 'Foobar';
$array = 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, array(
'foo' => 'bar',
'bar' => 'foo',
array(
'foo' => 'foobar',
'bar_foo',
2 => 'foo',
'foo' => array(
'barbar' => 55,
'foofoo' => false,
'foobar' => null,
)
)
), $resource);
new Dump(1 == '1', 1 === '1');