com presentations: Some work on the fall talks: singapore18.html singapore18.xml slides/intro/dce2018.xml slides/intro/phan_ 2018.xml slides/intro/php73.xml slides/intr o/smemwp2018.js slides/intro/smemwp2018.x ml slides/intro/thank_you_2018.xml slides/int ro/wp2018.js slides/intro/wp2018.xml

[email protected] (Rasmus Lerdorf) Sun, 16 Sep 2018 16:47:10 +0000
Newsgroups php.pres
Message-ID <[email protected]>
Commit:    508730627dbe97f70e84dbc62155eb8fa342f181
Author:    Rasmus Lerdorf <[email protected]>         Sun, 16 Sep 2018 09:47:10 -0700
Parents:   832aa3145ccd04529e09a583cc01e34f8f065920
Branches:  master

Link:       http://git.php.net/?p=presentations.git;a=commitdiff;h=508730627dbe97f70e84dbc62155eb8fa342f181

Log:
Some work on the fall talks

Changed paths:
  A  singapore18.html
  A  singapore18.xml
  A  slides/intro/dce2018.xml
  M  slides/intro/phan_2018.xml
  A  slides/intro/php73.xml
  A  slides/intro/smemwp2018.js
  A  slides/intro/smemwp2018.xml
  A  slides/intro/thank_you_2018.xml
  A  slides/intro/wp2018.js
  A  slides/intro/wp2018.xml
diff_508730627dbe97f70e84dbc62155eb8fa342f181.txt (text/plain, 56.6 KB)
diff --git a/singapore18.html b/singapore18.html
new file mode 100644
index 0000000..d7d891f
--- /dev/null
+++ b/singapore18.html
@@ -0,0 +1,803 @@
+<!doctype html>
+<html lang="en">
+
+	<head>
+		<meta charset="utf-8">
+
+		<title>PHP in 2018</title>
+
+		<meta name="description" content="PHP in 2018">
+		<meta name="author" content="Rasmus Lerdorf">
+
+		<meta name="apple-mobile-web-app-capable" content="yes" />
+		<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
+
+		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
+
+		<link rel="stylesheet" href="/reveal.js/css/reveal.css">
+		<link rel="stylesheet" href="/reveal.js/css/theme/white.css" id="theme">
+
+		<!-- For syntax highlighting - note that these are not the generic highlight.js theme files - see https://github.com/nwinkler/reveal-highlight-themes -->
+		<link rel="stylesheet" href="/styles/xcode.css">
+
+		<!-- Override a few styles -->
+        <style>
+        /*
+		   Not actually sure why this block isn't being picked up from the syntax highlight css 
+		   If you change the syntax highlight theme, copy the first block here
+		*/
+        .reveal pre {
+                width: 100%;
+        }
+
+        .reveal pre code {
+                display: block;
+                max-height: 600px;
+                overflow-x: auto;
+                padding: 0.5em;
+                line-height: 125%;
+                background: #fff;
+                color: black;
+                -webkit-text-size-adjust: none;
+        }
+
+        .reveal section img {
+               box-shadow: none;
+               border: none;
+        }
+
+        .reveal code.shell {
+            display: block;
+            overflow-x: auto;
+            padding: 0.5em;
+            background: #000;
+            color: #ddd;
+            line-height: 125%;
+            -webkit-text-size-adjust: none;
+        }
+
+        .reveal code.result {
+            display: block;
+            overflow-x: auto;
+            padding: 0.5em;
+            background: #ddd;
+            color: #000;
+            line-height: 125%;
+            -webkit-text-size-adjust: none;
+        }
+
+        /* Left-align h3 and h4 if they are p elements */
+        h3.p {
+                text-align: left;
+        }
+        h4.p {
+                text-align: left;
+        }
+        /* and left-aligned but slightly indented bullet lists */
+        .reveal ul {
+            display: block;
+            margin: 0 0 1em 3em;
+        }
+		/* Example titles */
+		p.example {
+			text-align: left;
+			margin: 0 0 -0.5em 1em;
+			font-weight: bold;
+		}
+		/* Example output style */
+		pre.output {
+            display: block;
+            overflow-x: auto;
+            padding: 0.5em;
+            background: #ddd;
+            color: black;
+			line-height: 200%;
+            -webkit-text-size-adjust: none;
+		}
+
+        </style>
+
+		 <!-- Printing and PDF exports -->
+		<script>
+			var link = document.createElement( 'link' );
+			link.rel = 'stylesheet';
+			link.type = 'text/css';
+			link.href = window.location.search.match( /print-pdf/gi ) ? '/reveal.js/css/print/pdf.css' : '/reveal.js/css/print/paper.css';
+			document.getElementsByTagName( 'head' )[0].appendChild( link );
+		</script>
+
+        <!-- Needed for charts to work. Fall back to network if no local copy -->
+        <script type='text/javascript' src='/jquery.min.js'></script> 
+        <script>window.jQuery || document.write('<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js">\x3C/script>')</script>
+        <script src="/highcharts.js"></script>
+        <script>window.Highcharts || document.write('<script src="http://code.highcharts.com/highcharts.js">\x3C/script>')</script>
+
+		<!--[if lt IE 9]>
+		<script src="/reveal.js/lib/js/html5shiv.js"></script>
+		<![endif]-->
+	</head>
+
+	<body>
+
+		<div class="reveal">
+
+			<!-- Any section element inside of this container is displayed as a slide -->
+			<div class="slides">
+				<section>
+					<h1>PHP in 2018</h1>
+					<h3>PHP Conf Asia</h3>
+					<h3>Singapore</h3>
+					<h3>Oct.27, 2018</h3>
+					<a href="http://talks.php.net/singapore18">http://talks.php.net/singapore18</a><br><br>
+					<p>Rasmus Lerdorf<br>
+					<small><a href="http://twitter.com/@rasmus">@rasmus</a></small>
+					</p>
+					<aside class="notes">
+											</aside>
+				</section>
+					<section>
+		<section id="hist_80s">
+		<h1 style="text-align:center;text-transform:none">1980s</h1>
+		<img src="/presentations/slides/intro/timex.jpg" align="center" width="" height="">
+		</section>
+<section id="hist_80s_1">
+		<img src="/presentations/slides/intro/vic20.jpg" align="center" width="" height="">
+		</section>
+<section id="hist_80s_2">
+		<img src="/presentations/slides/intro/hayes.jpg" align="center" width="" height="">
+		</section>
+<section id="hist_80s_3">
+		<img src="/presentations/slides/intro/Zmodem.gif" align="center" width="" height="">
+		</section>	</section>
+	<section>
+		<section id="hist_90s">
+		<h1 style="text-align:center;text-transform:none">1990s</h1>
+		<img src="/presentations/slides/intro/gopher.gif" align="center" width="" height="">
+		</section>
+<section id="hist_90s_1">
+		<img src="/presentations/slides/intro/mosaic.jpg" align="center" width="" height="">
+		</section>	</section>
+	<section>
+		<section id="hist_1993">
+		<h3 class="p" style="text-align:center;">1993</h3>
+		<pre><code class="C" data-trim style="font-size:0.8em;" >#include &lt;stdio.h&gt;
+#include &lt;stdlib.h&gt;
+#include &lt;ctype.h&gt;
+#include &lt;string.h&gt;
+
+#define ishex(x) (((x) &gt;= '0' &amp;&amp; (x) &lt;= '9') || ((x) &gt;= 'a' &amp;&amp; \
+                   (x) &lt;= 'f') || ((x) &gt;= 'A' &amp;&amp; (x) &lt;= 'F'))
+
+int htoi(char *s) {
+	int     value;
+	char    c;
+
+	c = s[0];
+	if(isupper(c)) c = tolower(c);
+	value=(c &gt;= '0' &amp;&amp; c &lt;= '9' ? c - '0' : c - 'a' + 10) * 16;
+
+	c = s[1];
+	if(isupper(c)) c = tolower(c);
+	value += c &gt;= '0' &amp;&amp; c &lt;= '9' ? c - '0' : c - 'a' + 10;
+
+	return(value);
+}
+
+void main(int argc, char *argv[]) {
+	char *params, *data, *dest, *s, *tmp;
+	char *name, *age;
+
+	puts(&quot;Content-type: text/html\r\n&quot;);
+	puts(&quot;&lt;HTML&gt;&lt;HEAD&gt;&lt;TITLE&gt;Form Example&lt;/TITLE&gt;&lt;/HEAD&gt;&quot;);
+	puts(&quot;&lt;BODY&gt;&lt;H1&gt;My Example Form&lt;/H1&gt;&quot;);
+	puts(&quot;&lt;FORM action=\&quot;form.cgi\&quot; method=\&quot;GET\&quot;&gt;&quot;);
+	puts(&quot;Name: &lt;INPUT type=\&quot;text\&quot; name=\&quot;name\&quot;&gt;&quot;);
+	puts(&quot;Age: &lt;INPUT type=\&quot;text\&quot; name=\&quot;age\&quot;&gt;&quot;);
+	puts(&quot;&lt;BR&gt;&lt;INPUT type=\&quot;submit\&quot;&gt;&quot;);
+	puts(&quot;&lt;/FORM&gt;&quot;);
+
+	data = getenv(&quot;QUERY_STRING&quot;);
+	if(data &amp;&amp; *data) {
+		params = data; dest = data;
+    	while(*data) {
+			if(*data=='+') *dest=' ';
+			else if(*data == '%' &amp;&amp; ishex(*(data+1))&amp;&amp;ishex(*(data+2))) {
+				*dest = (char) htoi(data + 1);
+				data+=2;
+			} else *dest = *data;
+			data++;
+			dest++;
+		}
+		*dest = '\0';
+		s = strtok(params,&quot;&amp;&quot;);
+		do {
+			tmp = strchr(s,'=');
+			if(tmp) {
+				*tmp = '\0';
+				if(!strcmp(s,&quot;name&quot;)) name = tmp+1;
+				else if(!strcmp(s,&quot;age&quot;)) age = tmp+1;
+			}
+		} while(s=strtok(NULL,&quot;&amp;&quot;));
+
+		printf(&quot;Hi %s, you are %s years old\n&quot;,name,age);
+	}
+	puts(&quot;&lt;/BODY&gt;&lt;/HTML&gt;&quot;);
+}</code></pre>
+		</section>	</section>
+	<section>
+		<section id="hist_1993_2">
+		<h3 class="p" style="text-align:center;">1993</h3>
+		<pre><code class="Perl" data-trim >use CGI qw(:standard);
+print header;
+print start_html('Form Example'),
+    h1('My Example Form'),
+    start_form,
+    &quot;Name: &quot;, textfield('name'),
+    p,
+    &quot;Age: &quot;, textfield('age'),
+    p,
+    submit,
+    end_form;
+if(param()) {
+    print &quot;Hi &quot;,em(param('name')),
+        &quot;You are &quot;,em(param('age')),
+        &quot; years old&quot;;
+}
+print end_html;</code></pre>
+		</section>	</section>
+	<section>
+		<section id="hist_1994">
+		<h3 class="p" style="text-align:center;">1994-1995</h3>
+		<pre><code class="PHP" data-trim >&lt;html&gt;&lt;head&gt;&lt;title&gt;Form Example&lt;/title&gt;&lt;/head&gt;
+&lt;body&gt;&lt;h1&gt;My Example Form&lt;/h1&gt;
+&lt;form action=&quot;form.phtml&quot; method=&quot;POST&quot;&gt;
+Name: &lt;input type=&quot;text&quot; name=&quot;name&quot;&gt;
+Age: &lt;input type=&quot;text&quot; name=&quot;age&quot;&gt;
+&lt;br&gt;&lt;input type=&quot;submit&quot;&gt;
+&lt;/form&gt;
+&lt;?if($name):?&gt;
+Hi &lt;?echo $name?&gt;, you are &lt;?echo $age?&gt; years old
+&lt;?endif?&gt;
+&lt;/body&gt;&lt;/html&gt;</code></pre>
+		</section>	</section>
+	<section>
+		<section id="php7_speed">
+		<img src="/presentations/slides/intro/php7trans-200.png"  width="" height="">
+		<p class="p" style="font-size:1.1em;text-align:left;">✔ engine improvements</p>
+		<ul>
+			<li style="font-size: 1em;">100%+ performance gain on most real-world applications</li>
+			<li style="font-size: 1em;">Lower memory usage, sometimes drastically lower</li>
+		</ul>
+		</section>	</section>
+	<section>
+		<section id="php7perfdetail">
+		<h1 style="text-align:center;">JIT?</h1>
+		</section>
+<section id="php7perfdetail1">
+		<p class="p" style="font-size:1.1em;">Improve CPU cache usage</p>
+		<ul>
+			<li style="font-size: 1em;list-style-type: none;">Step 1: Decrease overall data</li>
+			<li style="font-size: 1em;list-style-type: none;">Step 2: Better data locality and less indirections</li>
+			<li style="font-size: 1em;list-style-type: none;">Step 3: Save the world!</li>
+		</ul>
+		</section>
+<section id="php7perfdetail1">
+		<ul>
+			<li style="font-size: 1em;list-style-type: none;">zval size reduced from 24 to 16 bytes</li>
+			<li style="font-size: 1em;list-style-type: none;">Hashtable size reduced from 72 to 56 bytes</li>
+			<li style="font-size: 1em;list-style-type: none;">Hashtable bucket size reduced from 72 to 32 bytes</li>
+			<li style="font-size: 1em;list-style-type: none;">Immutable array optimization</li>
+		</ul>
+		<pre><code data-trim style="font-size:1.1em;" >$a = [];
+for($i=0; $i &lt; 100000;$i++) {
+    $a[] = ['abc','def','ghi','jkl','mno','pqr'];
+}
+echo memory_get_usage(true);
+
+// PHP 5.x  109M
+// PHP 7.0   42M no opcache
+// PHP 7.0    6M with opcache enabled</code></pre>
+		</section>
+<section id="php7perfdetail2">
+		<ul>
+			<li style="font-size: 1em;list-style-type: none;">New memory allocator similar to jemalloc</li>
+			<li style="font-size: 1em;list-style-type: none;">Faster hashtable iteration API</li>
+			<li style="font-size: 1em;list-style-type: none;">Array duplication optimization</li>
+			<li style="font-size: 1em;list-style-type: none;">PCRE JIT enabled by default</li>
+			<li style="font-size: 1em;list-style-type: none;">Precomputed string hashes</li>
+			<li style="font-size: 1em;list-style-type: none;">Fast ZPP (ZendParseParameters) implementation</li>
+			<li style="font-size: 1em;list-style-type: none;">Faster stack-allocated zvals (instead of heap)</li>
+			<li style="font-size: 1em;list-style-type: none;">Optimized VM calling</li>
+			<li style="font-size: 1em;list-style-type: none;">Global register variables with gcc 4.8+</li>
+			<li style="font-size: 1em;list-style-type: none;">plus hundreds of micro-optimizations</li>
+		</ul>
+		</section>
+<section id="php7detail4">
+		<h1 style="text-align:center;">JIT?</h1>
+		</section>	</section>
+	<section>
+		<section id="wpbench">
+
+<div id="wpbench_container" class="stretch" style="margin: 0 auto"></div>
+<script src="presentations/slides/intro/wp2018.js"></script>
+		</section>	</section>
+	<section>
+		<section id="smemwp">
+
+<div id="smemwp_container" class="stretch" style="margin: 0 auto"></div>
+<script src="presentations/slides/intro/smemwp2018.js"></script>
+		</section>	</section>
+	<section>
+		<section id="prod_perc95">
+		<h2 margin-bottom="2em">PHP 7 in production</h2><br>
+		<img src="/presentations/slides/intro/perc95.png" align="center" width="882" height="465">
+		</section>
+<section id="prod_cpu">
+		<img src="/presentations/slides/intro/cpu.png" align="center" width="882" height="465">
+		</section>
+<section id="prod_mem">
+		<img src="/presentations/slides/intro/mem.png" align="center" width="882" height="465">
+		</section>	</section>
+	<section>
+		<section id="impact">
+		<h1 style="text-align:center;">Saving the Planet?</h1>
+		</section>
+<section id="impact1">
+		<ul>
+			<li style="font-size: 1.5em;margin-left: -1em;">Around 2 billion sites on the web</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">On 10 million physical machines</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">PHP drives at least 50%</li>
+		</ul>
+		</section>
+<section id="impact2">
+		<ul>
+			<li style="font-size: 1.5em;margin-left: -1em;">Currently ~5% PHP 7 Adoption</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">which is about 250k physical servers</li>
+		</ul>
+		</section>
+<section id="impact3">
+		<ul>
+			<li style="font-size: 1.5em;margin-left: -1em;">3000 KWH/year per server costs approx. US$400</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">Data center cooling doubles that</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">0.5kg CO2 per KWH</li>
+		</ul>
+		</section>
+<section id="impact4">
+		<p class="p" style="font-size:2em;text-align:left;">At 5% Adoption</p>
+		<ul>
+			<li style="font-size: 1.5em;margin-left: -1em;">US $200M savings</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">750M KWH Savings</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">375M kg less CO2</li>
+		</ul>
+		</section>
+<section id="impact5">
+		<p class="p" style="font-size:2em;text-align:left;">At 100% Adoption</p>
+		<ul>
+			<li style="font-size: 1.5em;margin-left: -1em;">$4B savings</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">15B KWH Savings</li>
+			<li style="font-size: 1.5em;margin-left: -1em;">7.5B kg less CO2</li>
+		</ul>
+		</section>
+<section id="impact6">
+		<h1 style="text-align:center;">Do your part</h1>
+		<h1 style="text-align:center;">Upgrade to PHP 7!</h1>
+		</section>	</section>
+	<section>
+		<section id="php73">
+		<h1 style="text-align:center;">PHP 7.3</h1>
+		</section>
+<section id="php73_heredoc">
+		<p class="p" style="font-size:1.1em;text-align:left;">Flexible Heredoc</p>
+		<pre><code data-trim style="font-size:1.1em;" >class foo {
+    public $bar = &lt;&lt;&lt;EOT
+    bar
+    EOT;
+}</code></pre>
+		</section>
+<section id="php73_continue">
+		<p class="p" style="font-size:1.1em;text-align:left;">Continue in Switch</p>
+		<pre><code data-trim style="font-size:1.1em;" >while ($foo) {
+    switch ($bar) {
+        case &quot;baz&quot;:
+            continue;
+    }
+}</code></pre>
+		<pre><code class="nohighlight" data-trim style="font-size:1.1em;" >Warning: &quot;continue&quot; targeting switch is equivalent to &quot;break&quot;.
+         Did you mean to use &quot;continue 2&quot;?</code></pre>
+		</section>
+<section id="php73_listrefs">
+		<p class="p" style="font-size:1.1em;text-align:left;">List References</p>
+		<pre><code data-trim style="font-size:1.1em;" >$array = [1, 2];
+list($a, &amp;$b) = $array;
+// or
+[$a, &amp;$b] = $array;</code></pre>
+		</section>
+<section id="php73_commas">
+		<p class="p" style="font-size:1.1em;text-align:left;">Trailing comma allowed in function calls</p>
+		<pre><code data-trim style="font-size:1.1em;" >$newArray = array_merge(
+    $arrayOne,
+    $arrayTwo,
+    ['foo', 'bar'],
+);
+
+# Parse error
+function bar($a, $b,) { }
+
+# Parse error
+foo(,);
+
+# Parse error
+foo('function', 'bar',,);
+
+# Also parse error
+foo(, 'function', 'bar');</code></pre>
+		</section>
+<section id="php73_hrtime">
+		<p class="p" style="font-size:1.1em;text-align:left;">New Monotonic Timer function</p>
+		<pre><code data-trim style="font-size:1.0em;" >php &gt; print_r(hrtime());
+Array
+(
+    [0] =&gt; 2320165    // seconds
+    [1] =&gt; 979969517  // nanoseconds
+)
+php &gt; print_r(hrtime(true));
+2320183081647424</code></pre>
+		</section>
+<section id="php73_fpm_status">
+		<p class="p" style="font-size:1.1em;text-align:left;">New fpm_get_status() function</p>
+		<pre><code data-trim style="font-size:1.1em;" >print_r(fpm_get_status());
+Array (
+    [pool] =&gt; www
+    [process-manager] =&gt; static
+    [start-time] =&gt; 1536934549
+    [start-since] =&gt; 26
+    [accepted-conn] =&gt; 20039
+    [listen-queue] =&gt; 0
+    [max-listen-queue] =&gt; 0
+    [listen-queue-len] =&gt; 0
+    [idle-processes] =&gt; 0
+    [active-processes] =&gt; 47
+    [total-processes] =&gt; 47
+    [max-active-processes] =&gt; 514
+    [max-children-reached] =&gt; 0
+    [slow-requests] =&gt; 0
+    [procs] =&gt; Array (
+            [0] =&gt; Array (
+                    [pid] =&gt; 10819
+                    [state] =&gt; Running
+                    [start-time] =&gt; 1536934549
+                    [start-since] =&gt; 26
+                    [requests] =&gt; 2001
+                    [request-duration] =&gt; 8108
+                    [request-method] =&gt; GET
+                    [request-uri] =&gt; /index.php
+                    [query-string] =&gt; p=1
+                    [request-length] =&gt; 0
+                    [user] =&gt; -
+                    [script] =&gt; /var/www/wordpress/index.php
+                    [last-request-cpu] =&gt; 0
+                    [last-request-memory] =&gt; 0
+                )
+            ...</code></pre>
+		</section>
+<section id="php73_iscountable">
+		<p class="p" style="font-size:1.1em;text-align:left;">is_countable()</p>
+		<pre><code data-trim style="font-size:1.1em;" >if (is_array($foo) || $foo instanceof Countable) {
+    // $foo is countable
+}
+
+if (is_countable($foo)) {
+    // $foo is countable
+}</code></pre>
+		</section>
+<section id="php73_array_key">
+		<p class="p" style="font-size:1.1em;text-align:left;">array_key_first()/array_key_last()</p>
+		<pre><code data-trim style="font-size:1.1em;" >$a = ['abc'=&gt;'First', 'def'=&gt;'Second', 'ghi'=&gt;'Third'];
+echo array_key_first($a);
+// abc
+echo array_key_last($a);
+// ghi</code></pre>
+		</section>
+<section id="php73_opt">
+		<p class="p" style="font-size:1.6em;text-align:left;">DCE and SCCP optimizations</p>
+		</section>
+<section id="php73misc">
+		<p class="p" style="font-size:1.1em;text-align:left;">Other changes</p>
+		<ul>
+			<li style="font-size: 0.8em;margin-left: -1em;">Upgraded from PCRE to PCRE2</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">getallheaders() now available in php-fpm</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">full case-mapping for mbstring</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">preg_quote() now also escapes '#'</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">new gmp functions: gmp_binomial, gmp_lcm, gmp_perfect_power, gmp_kronecker</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">new JsonException</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">default ftp transfer mode is now binary</li>
+		</ul>
+		</section>
+<section id="php73cleanups">
+		<p class="p" style="font-size:1.1em;text-align:left;">Things that may break your code</p>
+		<ul>
+			<li style="font-size: 0.8em;margin-left: -1em;">PCRE2 differences (should be rare)</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">ODBCRouter and Birdstep support have been removed</li>
+			<li style="font-size: 0.8em;margin-left: -1em;">Various deprecations - see UPGRADING</li>
+		</ul>
+		<p class="p" style="font-size:1.1em;text-align:left;">Full details are at:</p>
+		<div align="" style="font-size: 0.8em; color: ; text-align: ; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING" target="">https://github.com/php/php-src/blob/PHP-7.3/UPGRADING</a></div>
+		<p class="p" style="font-size:1.1em;text-align:left;">And for extension authors:</p>
+		<div align="" style="font-size: 0.8em; color: ; text-align: ; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING.INTERNALS" target="">https://github.com/php/php-src/blob/PHP-7.3/UPGRADING.INTERNALS</a></div>
+		</section>	</section>
+	<section>
+		<section id="dce">
+		<p class="p" style="font-size:2em;text-align:center;">Dead Code Elimination (DCE)</p>
+		<p class="p" style="font-size:1.5em;text-align:center;">Escape Analysis</p>
+		<p class="p" style="font-size:1.4em;text-align:center;">Sparse Conditional Constant Propagation</p>
+		</section>
+<section id="dce0">
+		<pre><code class="result nohighlight" data-trim style="font-size:0.9em;" >php -d opcache.optimization_level=-1 -d opcache.opt_debug_level=0x20000 script</code></pre>
+		<pre><code data-trim style="font-size:1.05em;" >function fn() {
+    $a = 1;
+    return 0;
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.1</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1em;" >fn: (lines=2, args=0, vars=1, tmps=0)
+L0:   ASSIGN CV0($a) int(1)
+L1:   RETURN int(0)</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.2/7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1em;" >fn: (lines=1, args=0, vars=0, tmps=0)
+L0:   RETURN int(0)</code></pre>
+		</section>
+<section id="dce1">
+		<pre><code data-trim style="font-size:1.05em;" >function foo(string $s1, string $s2, string $s3, string $s4) {
+    $x = ($s1 . $s2) . ($s3 . $s4);
+    $x = 0;
+    return $x;
+}</code></pre>
+		<pre><code class="result nohighlight" data-trim style="font-size:1em;" >PHP 7.1                                   PHP 7.2/7.3
+foo: (lines=10, args=4, vars=5, tmps=3)   foo: (lines=5, args=4, vars=4, tmps=0)
+L0:   CV0($s1) = RECV 1                   L0:   CV0($s1) = RECV 1
+L1:   CV1($s2) = RECV 2                   L1:   CV1($s2) = RECV 2
+L2:   CV2($s3) = RECV 3                   L2:   CV2($s3) = RECV 3
+L3:   CV3($s4) = RECV 4                   L3:   CV3($s4) = RECV 4
+L4:   T6 = CONCAT CV0($s1) CV1($s2)       L4:   RETURN int(0)
+L5:   T7 = CONCAT CV2($s3) CV3($s4)
+L6:   T5 = CONCAT T6 T7
+L7:   ASSIGN CV4($x) T5
+L8:   ASSIGN CV4($x) int(0)
+L9:   RETURN CV4($x)</code></pre>
+		</section>
+<section id="dce2">
+		<p class="p" style="font-size:1.1em;text-align:left;">Try to trick it</p>
+		<pre><code data-trim style="font-size:1.05em;" >function foo($a) {
+    $b = $a += 3;
+    return $a;
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.2/7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1em;" >foo: (lines=3, args=1, vars=1, tmps=1)
+L0:   CV0($a) = RECV 1
+L1:   ASSIGN_ADD CV0($a) int(3)
+L2:   RETURN CV0($a)</code></pre>
+		</section>
+<section id="dce3">
+		<p class="p" style="font-size:1.1em;text-align:left;">But...</p>
+		<pre><code data-trim style="font-size:1.05em;" >function foo(int $x, int $y) {
+    $a = [$x];
+    $a[1] = $y;
+    $a = $y;
+    return $a;
+}</code></pre>
+		<pre><code class="result nohighlight" data-trim style="font-size:1em;" >PHP 7.2                                    PHP 7.3
+foo: (lines=7, args=2, vars=3, tmps=1)     foo: (lines=4, args=2, vars=3, tmps=0)
+L0:   CV0($x) = RECV 1                     L0:     CV0($x) = RECV 1
+L1:   CV1($y) = RECV 2                     L1:     CV1($y) = RECV 2
+L2:   CV2($a) = INIT_ARRAY 1 CV0($x) NEXT  L2:     CV2($a) = QM_ASSIGN CV1($y)
+L3:   ASSIGN_DIM CV2($a) int(1)            L3:     RETURN CV2($a)
+L4:   OP_DATA CV1($y)
+L5:   ASSIGN CV2($a) CV1($y)
+L6:   RETURN CV2($a)</code></pre>
+		</section>
+<section id="dce4">
+		<pre><code data-trim style="font-size:1.05em;" >class A { }
+function foo(int $x) {
+    $a = new A;
+    $a-&gt;foo = $x;
+    return $x;
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1.05em;" >foo: (lines=2, args=1, vars=1, tmps=0)
+L0:   CV0($x) = RECV 1
+L1:   RETURN CV0($x)</code></pre>
+		</section>
+<section id="dce5">
+		<pre><code data-trim style="font-size:1.05em;" >class A {
+    function __destruct() {}
+}
+function foo(int $x) {
+    $a = new A;
+    $a-&gt;foo = $x;
+    return $x;
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1.05em;" >foo: (lines=7, args=1, vars=2, tmps=1)
+L0:   CV0($x) = RECV 1
+L1:   V2 = NEW 0 string(&quot;A&quot;)
+L2:   DO_FCALL
+L3:   CV1($a) = QM_ASSIGN V2
+L4:   ASSIGN_OBJ CV1($a) string(&quot;foo&quot;)
+L5:   OP_DATA CV0($x)
+L6:   RETURN CV0($x)</code></pre>
+		</section>
+<section id="dce6">
+		<pre><code data-trim style="font-size:1.05em;" >function foo(int $x) {
+    if ($x) {
+        $a = [0,1];
+    } else {
+        $a = [0,2];
+    }
+    return $a[0];
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1.05em;" >foo: (lines=2, args=1, vars=1, tmps=0)
+L0:   CV0($x) = RECV 1
+L1:   RETURN int(0)</code></pre>
+		</section>
+<section id="dce7">
+		<pre><code data-trim style="font-size:1.05em;" >function foo() {
+    $o = new stdClass();
+    $o-&gt;foo = 0;
+    $i = 1;
+    $c = $i &lt; 2;
+    if ($c) {
+        $k = 2 * $i;
+        $o-&gt;foo = $i;
+        echo $o-&gt;foo;
+    }
+    $o-&gt;foo += 2;
+    $o-&gt;foo++;
+    return $o-&gt;foo;
+}</code></pre>
+		<p class="p" style="font-size:1.1em;text-align:left;">PHP 7.3</p>
+		<pre><code class="result nohighlight" data-trim style="font-size:1.05em;" >foo: (lines=2, args=0, vars=0, tmps=0)
+L0:   ECHO int(1)
+L1:   RETURN int(4)</code></pre>
+		</section>	</section>
+	<section>
+		<section id="phan">
+		<h1 style="text-align:center;">Static Analysis</h1>
+<br/>
+<br/>
+		<div align="center" style="font-size: 2em; color: ; text-align: center; margin-left: ; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/phan/phan" target="">github.com/phan/phan</a></div>
+		</section>
+<section id="phan0">
+		<p class="p" style="font-size:1.5em;text-align:left;">Install with composer</p>
+		<pre><code class="shell nohighlight" data-trim style="font-size:1em;" >$ composer require --dev phan/phan</code></pre>
+		<p class="p" style="font-size:1.5em;text-align:left;">Create .phan/config.php</p>
+		<pre><code class="shell nohighlight" data-trim style="font-size:1em;" >return [
+    'target_php_version' =&gt; '7.2',
+    'directory_list' =&gt; [ 'src/' ],
+    &quot;exclude_analysis_directory_list&quot; =&gt; [ 'vendor/' ],
+];</code></pre>
+		<pre><code class="shell nohighlight" data-trim style="font-size:1em;" >$ ./vendor/bin/phan</code></pre>
+		</section>
+<section id="phan1">
+		<p class="p" style="font-size:2em;text-align:left;">Checks</p>
+		<ul>
+			<li>enhanced phpdoc type annotations</li>
+			<li>Everything is defined and accessible</li>
+			<li>Type safety</li>
+			<li>PHP version compatibility</li>
+			<li>No-ops</li>
+			<li>Unreachable code</li>
+			<li>Unused use statements</li>
+			<li>Redefinitions</li>
+			<li>Signature compatibility and final on inheritance</li>
+			<li>and many more</li>
+		</ul>
+		</section>
+<section id="phan2">
+		<p class="p" style="font-size:1em;text-align:left;">Enhanced PHPDoc type annotations</p>
+		<pre><code data-trim style="font-size:1em;" >class C {
+  /**
+   * @param string|int $union
+   * @param int[] $generic
+   * @param array{mode:string,max:int} $shaped
+   */
+  static function fn($union, array $generic, $shaped) { }
+}
+C::fn(&quot;test&quot;, [1,2,3], ['mode'=&gt;&quot;test&quot;, 'max'=&gt;10]);
+C::fn(1, [1,2,3], ['mode'=&gt;&quot;test&quot;, 'max'=&gt;10]);
+C::fn(&quot;test&quot;, [1,2,3], ['max'=&gt;10,'mode'=&gt;&quot;test&quot;]);
+
+C::fn([1], [1,2,3], ['mode'=&gt;&quot;test&quot;, 'max'=&gt;10]);
+// PhanTypeMismatchArgument Argument 1 (union) is array{0:1}
+// but \C::fn() takes int|string
+
+C::fn(&quot;test&quot;, [1,2,3], ['max'=&gt;10]);
+// PhanTypeMismatchArgument Argument 3 (shaped) is array{max:10}
+// but \C::fn() takes array{mode:string,max:int</code></pre>
+		</section>
+<section id="phan3">
+		<p class="p" style="font-size:1.5em;text-align:left;">User plugins</p>
+		<div align="center" style="font-size: 1.5em; color: ; text-align: center; margin-left: ; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/phan/phan/wiki/Writing-Plugins-for-Phan" target="">Writing Plugins for Phan</a></div>
+		<p class="p" style="font-size:1.5em;text-align:left;">Included sample plugins</p>
+		<ul style="column-count:2;column-gap:1.8em;font-size:0.8em">
+			<li>Demo Plugin</li>
+			<li>Preg Regex Checker</li>
+			<li>Printf Checker</li>
+			<li>Unreachable Code</li>
+			<li>DollarDollar</li>
+			<li>NonBool Branch</li>
+			<li>Numerical Comparison</li>
+			<li>Has PHPDoc</li>
+			<li>Duplicate Expression</li>
+		</ul>
+		</section>
+<section id="phan4">
+		<p class="p" style="font-size:2em;text-align:left;">Daemon mode</p>
+		<pre><code class="shell nohighlight" data-trim style="font-size:1em;" >$ phan --daemonize-tcp-port default &amp;</code></pre>
+	<div id="container">
+      <video id='video' controls="controls" preload='none'
+        width="1848"  >
+        <source id='mp4' src="presentations/slides/intro/phanvid.mp4" type='video/mp4'/>
+        <p>Your user agent does not support the HTML5 Video element.</p>
+      </video>
+    </div>		</section>	</section>
+	<section>
+		<section id="thank_you">
+		<h2 style="text-align:center;">Thank You</h2>
+		<div align="left" style="font-size: 1em; color: ; text-align: left; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href=":-:url:-:" target="">http://talks.php.net/singapore18</a></div>
+		<div align="left" style="font-size: 1em; color: ; text-align: left; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/phan/phan" target="">https://github.com/phan/phan</a></div>
+		<div align="left" style="font-size: 1em; color: ; text-align: left; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/adsr/phpspy" target="">https://github.com/adsr/phpspy</a></div>
+		<div align="left" style="font-size: 1em; color: ; text-align: left; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING" target="">https://github.com/php/php-src/blob/PHP-7.3/UPGRADING</a></div>
+		<div align="left" style="font-size: 1em; color: ; text-align: left; margin-left: -1em; margin-right: ; margin-top: ; margin-bottom: ;"><a href="https://bugs.php.net" target="">https://bugs.php.net</a></div>
+<br/>
+<br/>
+<br/>
+		<p class="p" style="font-size:1.1em;">Report Bugs</p>
+		<p class="p" style="font-size:1.1em;">Useful bug reports, please!</p>
+		</section>	</section>
+			</div>
+
+		</div>
+
+		<script src="/reveal.js/lib/js/head.min.js"></script>
+		<script src="/reveal.js/js/reveal.js"></script>
+
+		<script>
+
+			Reveal.initialize({
+				controls: true,
+				progress: true,
+				history: true,
+				center: true,
+				width: 1024,
+				height: 768,
+
+				transition: 'slide', // none/fade/slide/convex/concave/zoom
+				transitionSpeed: 'fast',
+
+				// Optional reveal.js plugins
+				dependencies: [
+					{ src: '/reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } },
+					{ src: '/highlight.min.js', async: true, condition: function() { return !!document.querySelector( 'pre code' ); }, callback: function() { hljs.initHighlightingOnLoad(); } },
+					{ src: '/reveal.js/plugin/zoom-js/zoom.js', async: true },
+					{ src: '/reveal.js/plugin/notes/notes.js', async: true },
+					{ src: '/reveal.js/plugin/line-numbers/line-numbers.js' }
+				]
+			});
+			/* This draws the graph on the slide on a slidechanged event */
+			Reveal.addEventListener('slidechanged', function(event) {
+				var callback = "render_"+event.currentSlide.id;
+				if(typeof(window[callback])=="function") {
+					window[callback]();
+				}
+			} );
+			/* This draws the graph if we got here directly without coming from another slide */
+			Reveal.addEventListener('ready', function(event) {
+				var callback = "render_"+event.currentSlide.id;
+				if(typeof(window[callback])=="function") {
+					window[callback]();
+				}
+			} );
+		</script>
+
+	</body>
+</html>
diff --git a/singapore18.xml b/singapore18.xml
new file mode 100644
index 0000000..dfd447b
--- /dev/null
+++ b/singapore18.xml
@@ -0,0 +1,48 @@
+<presentation
+    template="simple"
+    navmode="html"
+    titlecolor="#000000"
+    navbarbackground="#bbbbbb"
+    navbartopiclinks="0"
+    logo1="images/php-med-trans.png"
+    titlesize="6em"
+    navbarheight="3.5em"
+    examplebackground="#ffffff"
+    outputbackground="#ffffff"
+    exampleclass="noshadow"
+    exampleoutputclass="noshadow"
+>
+
+<topic>PHP</topic>
+<title>PHP in 2018</title>
+<event>PHP Conf Asia</event>
+<location>Singapore</location>
+<date>Oct.27, 2018</date>
+<speaker>Rasmus Lerdorf</speaker>
+<url>http://talks.php.net/singapore18</url>
+<twitter>@rasmus</twitter>
+
+<slide>slides/intro/titlepage.xml</slide>
+
+<slide>slides/intro/80s.xml</slide>
+<slide>slides/intro/90s.xml</slide>
+<slide>slides/intro/nold.xml</slide>
+<slide>slides/intro/nold2.xml</slide>
+<slide>slides/intro/nold3.xml</slide>
+
+<slide>slides/intro/php7_speed.xml</slide>
+<slide>slides/intro/php7_perf_s.xml</slide>
+
+<slide>slides/intro/wp2018.xml</slide>
+<slide>slides/intro/smemwp2018.xml</slide>
+<slide>slides/intro/php7prod.xml</slide>
+<slide>slides/intro/web_impact.xml</slide>
+
+<slide>slides/intro/php73.xml</slide>
+<slide>slides/intro/dce2018.xml</slide>
+
+<slide>slides/intro/phan_2018.xml</slide>
+
+<slide>slides/intro/thank_you_2018.xml</slide>
+
+</presentation>
diff --git a/slides/intro/dce2018.xml b/slides/intro/dce2018.xml
new file mode 100644
index 0000000..75aa5c9
--- /dev/null
+++ b/slides/intro/dce2018.xml
@@ -0,0 +1,190 @@
+<slide title="" section="dce">
+
+<blurb fontsize="2em" align="center">Dead Code Elimination (DCE)</blurb>
+<blurb fontsize="1.5em" align="center">Escape Analysis</blurb>
+<blurb fontsize="1.4em" align="center">Sparse Conditional Constant Propagation</blurb>
+
+<break lines="1" section="dce0"/>
+
+<example fontsize="0.9em" result='0' title="" type="result nohighlight"><![CDATA[
+php -d opcache.optimization_level=-1 -d opcache.opt_debug_level=0x20000 script
+]]></example>
+
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+function fn() {
+    $a = 1;
+    return 0;
+}
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.1</blurb>
+<example fontsize="1em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+fn: (lines=2, args=0, vars=1, tmps=0)
+L0:   ASSIGN CV0($a) int(1)
+L1:   RETURN int(0)
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.2/7.3</blurb>
+<example fontsize="1em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+fn: (lines=1, args=0, vars=0, tmps=0)
+L0:   RETURN int(0)
+]]></example>
+
+<break lines="1" section="dce1"/>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+function foo(string $s1, string $s2, string $s3, string $s4) {
+    $x = ($s1 . $s2) . ($s3 . $s4);
+    $x = 0;
+    return $x;
+}
+]]></example>
+
+<example fontsize="1em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+PHP 7.1                                   PHP 7.2/7.3
+foo: (lines=10, args=4, vars=5, tmps=3)   foo: (lines=5, args=4, vars=4, tmps=0)
+L0:   CV0($s1) = RECV 1                   L0:   CV0($s1) = RECV 1
+L1:   CV1($s2) = RECV 2                   L1:   CV1($s2) = RECV 2
+L2:   CV2($s3) = RECV 3                   L2:   CV2($s3) = RECV 3
+L3:   CV3($s4) = RECV 4                   L3:   CV3($s4) = RECV 4
+L4:   T6 = CONCAT CV0($s1) CV1($s2)       L4:   RETURN int(0)
+L5:   T7 = CONCAT CV2($s3) CV3($s4)
+L6:   T5 = CONCAT T6 T7
+L7:   ASSIGN CV4($x) T5
+L8:   ASSIGN CV4($x) int(0)
+L9:   RETURN CV4($x)
+]]></example>
+
+<break lines="1" section="dce2"/>
+<blurb fontsize="1.1em" align="left">Try to trick it</blurb>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+function foo($a) {
+    $b = $a += 3;
+    return $a;
+}
+]]></example>
+<blurb fontsize="1.1em" align="left">PHP 7.2/7.3</blurb>
+<example fontsize="1em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+foo: (lines=3, args=1, vars=1, tmps=1)
+L0:   CV0($a) = RECV 1
+L1:   ASSIGN_ADD CV0($a) int(3)
+L2:   RETURN CV0($a)
+]]></example>
+
+<break lines="1" section="dce3"/>
+
+<blurb fontsize="1.1em" align="left">But...</blurb>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+function foo(int $x, int $y) {
+    $a = [$x];
+    $a[1] = $y;
+    $a = $y;
+    return $a;
+}
+]]></example>
+
+<example fontsize="1em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+PHP 7.2                                    PHP 7.3
+foo: (lines=7, args=2, vars=3, tmps=1)     foo: (lines=4, args=2, vars=3, tmps=0)
+L0:   CV0($x) = RECV 1                     L0:     CV0($x) = RECV 1
+L1:   CV1($y) = RECV 2                     L1:     CV1($y) = RECV 2
+L2:   CV2($a) = INIT_ARRAY 1 CV0($x) NEXT  L2:     CV2($a) = QM_ASSIGN CV1($y)
+L3:   ASSIGN_DIM CV2($a) int(1)            L3:     RETURN CV2($a)
+L4:   OP_DATA CV1($y)
+L5:   ASSIGN CV2($a) CV1($y)
+L6:   RETURN CV2($a)
+]]></example>
+
+<break lines="1" section="dce4"/>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+class A { }
+function foo(int $x) {
+    $a = new A;
+    $a->foo = $x;
+    return $x;
+}
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.3</blurb>
+<example fontsize="1.05em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+foo: (lines=2, args=1, vars=1, tmps=0)
+L0:   CV0($x) = RECV 1
+L1:   RETURN CV0($x)
+]]></example>
+
+<break lines="1" section="dce5"/>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+class A {
+    function __destruct() {}
+}
+function foo(int $x) {
+    $a = new A;
+    $a->foo = $x;
+    return $x;
+}
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.3</blurb>
+<example fontsize="1.05em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+foo: (lines=7, args=1, vars=2, tmps=1)
+L0:   CV0($x) = RECV 1
+L1:   V2 = NEW 0 string("A")
+L2:   DO_FCALL
+L3:   CV1($a) = QM_ASSIGN V2
+L4:   ASSIGN_OBJ CV1($a) string("foo")
+L5:   OP_DATA CV0($x)
+L6:   RETURN CV0($x)
+]]></example>
+
+<break lines="1" section="dce6"/>
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+function foo(int $x) {
+    if ($x) {
+        $a = [0,1];
+    } else {
+        $a = [0,2];
+    }
+    return $a[0];
+}
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.3</blurb>
+<example fontsize="1.05em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+foo: (lines=2, args=1, vars=1, tmps=0)
+L0:   CV0($x) = RECV 1
+L1:   RETURN int(0)
+]]></example>
+
+<break lines="1" section="dce7"/>
+
+<example fontsize="1.05em" result='0' title="" type=""><![CDATA[
+<?php
+function foo() {
+    $o = new stdClass();
+    $o->foo = 0;
+    $i = 1;
+    $c = $i < 2;
+    if ($c) {
+        $k = 2 * $i;
+        $o->foo = $i;
+        echo $o->foo;
+    }
+    $o->foo += 2;
+    $o->foo++;
+    return $o->foo;
+}
+]]></example>
+
+<blurb fontsize="1.1em" align="left">PHP 7.3</blurb>
+<example fontsize="1.05em" hide="0" result="0" title="" type="result nohighlight"><![CDATA[
+foo: (lines=2, args=0, vars=0, tmps=0)
+L0:   ECHO int(1)
+L1:   RETURN int(4)
+]]></example>
+
+</slide>
diff --git a/slides/intro/phan_2018.xml b/slides/intro/phan_2018.xml
index 54b48a6..d5572c0 100644
--- a/slides/intro/phan_2018.xml
+++ b/slides/intro/phan_2018.xml
@@ -10,7 +10,12 @@ $ composer require --dev phan/phan
 ]]></example>
 <blurb fontsize="1.5em" align="left">Create .phan/config.php</blurb>
 <example fontsize="1em" result='0' title="" type="shell nohighlight"><![CDATA[
-$ phan --init
+<?php
+return [
+    'target_php_version' => '7.2',
+    'directory_list' => [ 'src/' ],
+    "exclude_analysis_directory_list" => [ 'vendor/' ],
+];
 ]]></example>
 <example fontsize="1em" result='0' title="" type="shell nohighlight"><![CDATA[
 $ ./vendor/bin/phan
@@ -19,7 +24,7 @@ $ ./vendor/bin/phan
 <break lines="1" section="phan1"/>
 <blurb fontsize="2em" align="left">Checks</blurb>
 <list>
-<bullet>phpdoc type annotations</bullet>
+<bullet>enhanced phpdoc type annotations</bullet>
 <bullet>Everything is defined and accessible</bullet>
 <bullet>Type safety</bullet>
 <bullet>PHP version compatibility</bullet>
@@ -32,19 +37,50 @@ $ ./vendor/bin/phan
 </list>
 
 <break lines="1" section="phan2"/>
+<blurb fontsize="1em" align="left">Enhanced PHPDoc type annotations</blurb>
+<example fontsize="1em" result='0' title="" type=""><![CDATA[
+<?php
+class C {
+  /**
+   * @param string|int $union
+   * @param int[] $generic
+   * @param array{mode:string,max:int} $shaped
+   */
+  static function fn($union, array $generic, $shaped) { }
+}
+C::fn("test", [1,2,3], ['mode'=>"test", 'max'=>10]);
+C::fn(1, [1,2,3], ['mode'=>"test", 'max'=>10]);
+C::fn("test", [1,2,3], ['max'=>10,'mode'=>"test"]);
+
+C::fn([1], [1,2,3], ['mode'=>"test", 'max'=>10]);
+// PhanTypeMismatchArgument Argument 1 (union) is array{0:1}
+// but \C::fn() takes int|string
+
+C::fn("test", [1,2,3], ['max'=>10]);
+// PhanTypeMismatchArgument Argument 3 (shaped) is array{max:10}
+// but \C::fn() takes array{mode:string,max:int
+]]></example>
+
+<break lines="1" section="phan3"/>
 <blurb fontsize="1.5em" align="left">User plugins</blurb>
 <link fontsize="1.5em" align="center" href="https://github.com/phan/phan/wiki/Writing-Plugins-for-Phan">Writing Plugins for Phan</link>
 <blurb fontsize="1.5em" align="left">Included sample plugins</blurb>
-<list>
-<bullet>DemoPlugin</bullet>
-<bullet>PregRegexCheckerPlugin</bullet>
-<bullet>PrintfRegexCheckerPlugin</bullet>
-<bullet>UnreachableCodePlugin</bullet>
-<bullet>DollarDollarPlugin</bullet>
-<bullet>NonBoolBranchPlugin</bullet>
-<bullet>NumericalComparisonPlugin</bullet>
+<list style="column-count:2;column-gap:1.8em;font-size:0.8em">
+<bullet>Demo Plugin</bullet>
+<bullet>Preg Regex Checker</bullet>
+<bullet>Printf Checker</bullet>
+<bullet>Unreachable Code</bullet>
+<bullet>DollarDollar</bullet>
+<bullet>NonBool Branch</bullet>
+<bullet>Numerical Comparison</bullet>
+<bullet>Has PHPDoc</bullet>
+<bullet>Duplicate Expression</bullet>
 </list>
-<break lines="1" section="phan3"/>
+<break lines="1" section="phan4"/>
 <blurb fontsize="2em" align="left">Daemon mode</blurb>
+<example fontsize="1em" result='0' title="" type="shell nohighlight"><![CDATA[
+$ phan --daemonize-tcp-port default &
+]]></example>
+
 <movie filename="phanvid.mp4" align="center" width="1848" height="1008" autoplay="false" replay="0"/>
 </slide>
diff --git a/slides/intro/php73.xml b/slides/intro/php73.xml
new file mode 100644
index 0000000..557408a
--- /dev/null
+++ b/slides/intro/php73.xml
@@ -0,0 +1,171 @@
+<slide title="" section="php73">
+
+<blurb fontsize="20em" align="center">PHP 7.3</blurb>
+
+<break lines="1" section="php73_heredoc"/>
+<blurb fontsize="1.1em" align="left">Flexible Heredoc</blurb>
+
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+<?php
+class foo {
+    public $bar = <<<EOT
+    bar
+    EOT;
+}
+]]></example>
+
+<break lines="1" section="php73_continue"/>
+<blurb fontsize="1.1em" align="left">Continue in Switch</blurb>
+
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[<?php
+while ($foo) {
+    switch ($bar) {
+        case "baz":
+            continue;
+    }
+}
+]]></example>
+<example fontsize="1.1em" result='0' title="" type="nohighlight"><![CDATA[
+Warning: "continue" targeting switch is equivalent to "break".
+         Did you mean to use "continue 2"?
+]]></example>
+
+<break lines="1" section="php73_listrefs"/>
+<blurb fontsize="1.1em" align="left">List References</blurb>
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+$array = [1, 2];
+list($a, &$b) = $array;
+// or
+[$a, &$b] = $array;
+]]></example>
+
+<break lines="1" section="php73_commas"/>
+<blurb fontsize="1.1em" align="left">Trailing comma allowed in function calls</blurb>
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+$newArray = array_merge(
+    $arrayOne,
+    $arrayTwo,
+    ['foo', 'bar'],
+);
+
+# Parse error
+function bar($a, $b,) { }
+
+# Parse error
+foo(,);
+
+# Parse error
+foo('function', 'bar',,);
+
+# Also parse error
+foo(, 'function', 'bar');
+]]></example>
+
+<break lines="1" section="php73_hrtime"/>
+<blurb fontsize="1.1em" align="left">New Monotonic Timer function</blurb>
+<example fontsize="1.0em" result='0' title="" type=""><![CDATA[
+php > print_r(hrtime());
+Array
+(
+    [0] => 2320165    // seconds
+    [1] => 979969517  // nanoseconds
+)
+php > print_r(hrtime(true));
+2320183081647424
+]]></example>
+
+<break lines="1" section="php73_fpm_status"/>
+<blurb fontsize="1.1em" align="left">New fpm_get_status() function</blurb>
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+<?php
+print_r(fpm_get_status());
+Array (
+    [pool] => www
+    [process-manager] => static
+    [start-time] => 1536934549
+    [start-since] => 26
+    [accepted-conn] => 20039
+    [listen-queue] => 0
+    [max-listen-queue] => 0
+    [listen-queue-len] => 0
+    [idle-processes] => 0
+    [active-processes] => 47
+    [total-processes] => 47
+    [max-active-processes] => 514
+    [max-children-reached] => 0
+    [slow-requests] => 0
+    [procs] => Array (
+            [0] => Array (
+                    [pid] => 10819
+                    [state] => Running
+                    [start-time] => 1536934549
+                    [start-since] => 26
+                    [requests] => 2001
+                    [request-duration] => 8108
+                    [request-method] => GET
+                    [request-uri] => /index.php
+                    [query-string] => p=1
+                    [request-length] => 0
+                    [user] => -
+                    [script] => /var/www/wordpress/index.php
+                    [last-request-cpu] => 0
+                    [last-request-memory] => 0
+                )
+            ...
+]]></example>
+
+<break lines="1" section="php73_iscountable"/>
+<blurb fontsize="1.1em" align="left">is_countable()</blurb>
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+<?php
+
+if (is_array($foo) || $foo instanceof Countable) {
+    // $foo is countable
+}
+
+if (is_countable($foo)) {
+    // $foo is countable
+}
+]]></example>
+
+<break lines="1" section="php73_array_key"/>
+<blurb fontsize="1.1em" align="left">array_key_first()/array_key_last()</blurb>
+<example fontsize="1.1em" result='0' title="" type=""><![CDATA[
+<?php
+$a = ['abc'=>'First', 'def'=>'Second', 'ghi'=>'Third'];
+echo array_key_first($a);
+// abc
+echo array_key_last($a);
+// ghi
+]]></example>
+
+<break lines="1" section="php73_opt"/>
+<blurb fontsize="1.6em" align="left">DCE and SCCP optimizations</blurb>
+
+<break lines="1" section="php73misc"/>
+<blurb fontsize="1.1em" align="left">Other changes</blurb>
+<list>
+<bullet marginleft="-1em" fontsize="0.8em">Upgraded from PCRE to PCRE2</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">getallheaders() now available in php-fpm</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">full case-mapping for mbstring</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">preg_quote() now also escapes '#'</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">new gmp functions: gmp_binomial, gmp_lcm, gmp_perfect_power, gmp_kronecker</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">new JsonException</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">default ftp transfer mode is now binary</bullet>
+</list>
+
+
+<break lines="1" section="php73cleanups"/>
+<blurb fontsize="1.1em" align="left">Things that may break your code</blurb>
+<list>
+<bullet marginleft="-1em" fontsize="0.8em">PCRE2 differences (should be rare)</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">ODBCRouter and Birdstep support have been removed</bullet>
+<bullet marginleft="-1em" fontsize="0.8em">Various deprecations - see UPGRADING</bullet>
+</list>
+
+<blurb fontsize="1.1em" align="left">Full details are at:</blurb>
+<link fontsize="0.8em" marginleft="-1em" leader="" href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING"/>
+<blurb fontsize="1.1em" align="left">And for extension authors:</blurb>
+<link fontsize="0.8em" marginleft="-1em" leader="" href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING.INTERNALS"/>
+
+</slide>
diff --git a/slides/intro/smemwp2018.js b/slides/intro/smemwp2018.js
new file mode 100644
index 0000000..2bdc3a2
--- /dev/null
+++ b/slides/intro/smemwp2018.js
@@ -0,0 +1,102 @@
+window["render_smemwp"] = function() {
+    $('#smemwp_container').highcharts({
+        chart: {
+            type: 'column'
+        },
+        title: {
+            text: 'Wordpress 4.3 Memory',
+			style: { fontSize: '40px' }
+        },
+        subtitle: {
+            text: 'http://wordpress/2017/02/05/hello-world/',
+			style: { fontSize: '20px' }
+        },
+        xAxis: [{
+            categories: [ 'PHP 5.3', 'PHP 5.4', 'PHP 5.5', 'PHP 5.6', 'PHP 7.0', 'PHP 7.1', 'PHP 7.2', 'PHP 7.3' ],
+            labels: {
+                style: { color: '#000', fontSize: '20px' }
+            }
+        }],
+        yAxis: [{
+            min: 0,
+			showEmpty: false,
+            title: {
+                text: 'M',
+				style: { fontSize: '25px' }
+            },
+			labels: {
+				style: { color: '#111', fontSize: '15px' }
+			}
+        }],
+        tooltip: {
+			enabled: false
+        },
+		legend: {
+			title: { text: 'Type' }
+		},
+        plotOptions: {
+            column: {
+                pointPadding: 0.01,
+                groupPadding: 0.05,
+                borderWidth: 0
+            }
+        },
+        series: [{
+            name: 'USS - Unique Set Size',
+			yAxis: 0,
+            data: [110.4,87.3,75.1,70.6,10.3,10.5,10.2,10.1],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#000',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.1f}'
+			},
+			visible: false
+        }, {
+            name: 'PSS - Proportional Set Size',
+			yAxis: 0,
+            data: [139.7,111.7,99.6,93.9,15.3,15.4,15.2,15.1],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#fff',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.1f}'
+			},
+			visible: true
+
+        }, {
+            name: 'RSS - Resident Set Size',
+			yAxis: 0,
+            data: [427.1,356.6,341.9,325,92.3,92.6,92.2,92],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#000',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.1f}'
+			},
+			visible: false
+        }],
+		credits: false
+    });
+}
diff --git a/slides/intro/smemwp2018.xml b/slides/intro/smemwp2018.xml
new file mode 100644
index 0000000..7c488d1
--- /dev/null
+++ b/slides/intro/smemwp2018.xml
@@ -0,0 +1,7 @@
+<slide title="" section="smemwp">
+
+<literal><![CDATA[
+<div id="smemwp_container" class="stretch" style="margin: 0 auto"></div>
+<script src="presentations/slides/intro/smemwp2018.js"></script>
+]]></literal>
+</slide>
diff --git a/slides/intro/thank_you_2018.xml b/slides/intro/thank_you_2018.xml
new file mode 100644
index 0000000..d2de80c
--- /dev/null
+++ b/slides/intro/thank_you_2018.xml
@@ -0,0 +1,16 @@
+<slide title="" section="thank_you">
+
+<blurb fontsize="10em" align="center">Thank You</blurb>
+
+<link fontsize="1em" align="left" marginleft="-1em" href=":-:url:-:">:-:url:-:</link>
+<link fontsize="1em" align="left" marginleft="-1em" href="https://github.com/phan/phan">https://github.com/phan/phan</link>
+<link fontsize="1em" align="left" marginleft="-1em" href="https://github.com/adsr/phpspy">https://github.com/adsr/phpspy</link>
+<link fontsize="1em" align="left" marginleft="-1em" href="https://github.com/php/php-src/blob/PHP-7.3/UPGRADING">https://github.com/php/php-src/blob/PHP-7.3/UPGRADING</link>
+<link fontsize="1em" align="left" marginleft="-1em" href="https://bugs.php.net">https://bugs.php.net</link>
+
+<break lines="3"/>
+
+<blurb fontsize="1.1em">Report Bugs</blurb>
+<blurb fontsize="1.1em">Useful bug reports, please!</blurb>
+
+</slide>
diff --git a/slides/intro/wp2018.js b/slides/intro/wp2018.js
new file mode 100644
index 0000000..03bb6ee
--- /dev/null
+++ b/slides/intro/wp2018.js
@@ -0,0 +1,133 @@
+window["render_wpbench"] = function() {
+    $('#wpbench_container').highcharts({
+        chart: {
+            type: 'column'
+        },
+        title: {
+            text: 'Wordpress 4.9.8',
+			style: { fontSize: '40px' }
+        },
+        subtitle: {
+            text: 'http://wordpress/?p=1',
+			style: { fontSize: '20px' }
+        },
+        xAxis: [{
+            categories: [ 'PHP 5.3 (2009)', 'PHP 5.4 (2012)', 'PHP 5.5 (2013)', 'PHP 5.6 (2014)', 'PHP 7.0 (2015)', 'PHP 7.1 (2016)', 'PHP 7.2 (2017)', 'PHP 7.3 (2018)' ],
+            labels: {
+                style: { color: '#000', fontSize: '20px' }
+            }
+        }],
+        yAxis: [{
+            min: 0,
+			showEmpty: false,
+            title: {
+                text: 'Req/sec',
+				style: { fontSize: '25px' }
+            },
+			labels: {
+				style: { color: '#111', fontSize: '15px' }
+			}
+        }, {
+			min: 0,
+			showEmpty: false,
+			title: {
+				text: 'Latency (ms)',
+				style: { fontSize: '25px' }
+			},
+            labels: {
+				format: '{value}ms',
+				style: { color: '#111', fontSize: '15px' }
+            },
+			opposite: true
+		}],
+        tooltip: {
+			enabled: false
+        },
+		legend: {
+			title: { text: 'Concurrent clients' }
+		},
+        plotOptions: {
+            column: {
+                pointPadding: 0.01,
+                groupPadding: 0.05,
+                borderWidth: 0
+            }
+        },
+        series: [{
+            name: 'r/s @ 10',
+			yAxis: 0,
+            data: [153.90,169.68,173.82,184.57,419.23,428.15,455.23,503.68],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#000',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.0f}'
+			},
+			visible: false
+        }, {
+            name: 'r/s @ 20',
+			yAxis: 0,
+            data: [154.37,172.02,175.07,187.01,432.57,434.57,465.28,520.20],
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#fff',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.0f}'
+			},
+			visible: true
+        }, {
+            name: 'latency @ 10',
+			yAxis: 1,
+			data: [70,47.25,46.25,43.48,19.71,18.88,17.59,15.90],
+			tooltip: { valueSuffix: 'ms' },
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#000',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.0f}'
+			},
+			visible: false
+		}, {
+            name: 'latency @ 20',
+			yAxis: 1,
+			data: [130,116.33,115.15,110.34,47.08,46.04,43.57,38.45],
+			tooltip: { valueSuffix: 'ms' },
+            dataLabels: {
+                enabled: true,
+                rotation: -90,
+                color: '#000',
+                align: 'right',
+                x: 4,
+                y: 5,
+                style: {
+                    fontSize: '13px',
+                    fontFamily: 'Verdana, sans-serif',
+                },
+                format: '{point.y:.0f}'
+			},
+			visible: false
+		}],
+		credits: false
+    });
+}
diff --git a/slides/intro/wp2018.xml b/slides/intro/wp2018.xml
new file mode 100644
index 0000000..db1ec25
--- /dev/null
+++ b/slides/intro/wp2018.xml
@@ -0,0 +1,8 @@
+<slide title="" section="wpbench">
+
+<literal><![CDATA[
+<div id="wpbench_container" class="stretch" style="margin: 0 auto"></div>
+<script src="presentations/slides/intro/wp2018.js"></script>
+]]></literal>
+
+</slide>