-
Notifications
You must be signed in to change notification settings - Fork 0
/
gewinnspiel-092017.html
120 lines (99 loc) · 2.83 KB
/
gewinnspiel-092017.html
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
<!DOCTYPE html>
<html lang="en">
<head>
<title>PHPUGKA - Gewinnspiel</title>
<link rel="stylesheet" href="bower_components/reveal-js/css/reveal.css">
<link rel="stylesheet" href="bower_components/reveal-js/css/theme/simple.css" id="theme">
<link rel="stylesheet" href="bower_components/reveal-js/lib/css/zenburn.css">
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<img src="images/phpugka.png" width="500" style="border: 0; box-shadow: none">
<h2>Gewinnspiel</h2>
</section>
<section>
<h3>PHP 7</h3>
<pre><code class="php">
<?php
$obj = new class {
private function bar()
{
throw new Exception('method was called');
}
};
var_dump(
method_exists($obj, 'bar')
);
</code></pre>
<div class="fragment fade-in">true</div>
</section>
<section>
<h3>PHP</h3>
<pre><code class="php">
<?php
echo print('23');
</code></pre>
<div class="fragment fade-in">231</div>
</section>
<section>
<h3>PHP < 7.2</h3>
<pre><code class="php">
<?php
echo count(null) . count(0) . count(new stdClass);
</code></pre>
<div class="fragment fade-in">011</div>
</section>
<section>
<h3>PHP 7</h3>
<pre><code class="php">
<?php
$f = (function() {
foreach ([1,2,3] as $i) {
echo $i + yield;
}
})();
foreach ([2, 1, 2] as $i) {
$f->send($i);
}
</code></pre>
<div class="fragment fade-in">335</div>
</section>
<section>
<h3>PHP 5.6</h3>
<pre><code class="php">
<?php
var_dump(
$i = 2 ?: null ? 3 : 1
);
</code></pre>
<div class="fragment fade-in">3</div>
</section>
<section>
<h3>PHP 7</h3>
<pre><code class="php">
<?php
echo ['a', 'b', 'c', 'd'][[2, 3][1]];
</code></pre>
<div class="fragment fade-in">d</div>
</section>
</div>
</div>
<script src="bower_components/reveal-js/js/reveal.min.js"></script>
<script type="application/javascript">
Reveal.initialize({
center: true,
width: 1200,
height: 800,
minScale: 1.0,
maxScale: 10.0,
rollingLinks: true,
transition: 'linear' // default/cube/page/concave/zoom/linear/fade/none
});
</script>
<script type="text/javascript" src="bower_components/reveal-js/plugin/highlight/highlight.js"></script>
<script type="text/javascript">hljs.initHighlightingOnLoad();</script>
</body>
</html>