diff --git a/reference/datetime/datetimezone/construct.xml b/reference/datetime/datetimezone/construct.xml
index 51c36dd7187c..938002b60bdb 100644
--- a/reference/datetime/datetimezone/construct.xml
+++ b/reference/datetime/datetimezone/construct.xml
@@ -152,8 +152,8 @@ foreach ($timezones as $tz) {
diff --git a/reference/datetime/functions/date-sun-info.xml b/reference/datetime/functions/date-sun-info.xml
index 6b9a781ee1d7..cf2c478fda26 100644
--- a/reference/datetime/functions/date-sun-info.xml
+++ b/reference/datetime/functions/date-sun-info.xml
@@ -175,6 +175,7 @@
$val) {
echo "$key: " . date("H:i:s", $val) . "\n";
@@ -184,15 +185,15 @@ foreach ($sun_info as $key => $val) {
&example.outputs;
diff --git a/reference/random/random/engine/pcgoneseq128xslrr64/jump.xml b/reference/random/random/engine/pcgoneseq128xslrr64/jump.xml
index 62af3acbccf5..c22631f80260 100644
--- a/reference/random/random/engine/pcgoneseq128xslrr64/jump.xml
+++ b/reference/random/random/engine/pcgoneseq128xslrr64/jump.xml
@@ -104,9 +104,9 @@ echo "B: ", bin2hex($b->engine->generate()), "\n";
&example.outputs;
diff --git a/reference/uri/uri/whatwg/url/getport.xml b/reference/uri/uri/whatwg/url/getport.xml
index 10587042db8e..c123438c6158 100644
--- a/reference/uri/uri/whatwg/url/getport.xml
+++ b/reference/uri/uri/whatwg/url/getport.xml
@@ -35,16 +35,20 @@
getPort());
-echo $url->getPort();
+// 443 is the default port for https, so it is not stored.
+$url = new \Uri\WhatWg\Url("https://example.com:443");
+var_dump($url->getPort());
?>
]]>
&example.outputs;
diff --git a/reference/uri/uri/whatwg/url/parse.xml b/reference/uri/uri/whatwg/url/parse.xml
index 560af29fd6e0..a14cb5ebf7a8 100644
--- a/reference/uri/uri/whatwg/url/parse.xml
+++ b/reference/uri/uri/whatwg/url/parse.xml
@@ -79,7 +79,7 @@ if ($url !== null) {
&example.outputs;
diff --git a/reference/uri/uri/whatwg/url/withport.xml b/reference/uri/uri/whatwg/url/withport.xml
index 400eabac1e06..ec298021a044 100644
--- a/reference/uri/uri/whatwg/url/withport.xml
+++ b/reference/uri/uri/whatwg/url/withport.xml
@@ -50,16 +50,21 @@
withPort(443);
+var_dump($url->getPort());
-echo $url->getPort();
+$url = $url->withPort(8443);
+var_dump($url->getPort());
?>
]]>
&example.outputs;