diff --git a/ext/simplexml/tests/profile01.phpt b/ext/simplexml/tests/profile01.phpt
new file mode 100644
index 00000000000..91b9544f66b
--- /dev/null
+++ b/ext/simplexml/tests/profile01.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SimpleXML [profile]: Accessing a simple node
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+
+');
+
+echo $root->child;
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Hello
+---Done---
diff --git a/ext/simplexml/tests/profile02.phpt b/ext/simplexml/tests/profile02.phpt
new file mode 100644
index 00000000000..14b5bb86b28
--- /dev/null
+++ b/ext/simplexml/tests/profile02.phpt
@@ -0,0 +1,21 @@
+--TEST--
+SimpleXML [profile]: Accessing an array of subnodes
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+ World
+
+');
+
+foreach ($root->child as $child) {
+ echo "$child ";
+}
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Hello World
+---Done---
diff --git a/ext/simplexml/tests/profile03.phpt b/ext/simplexml/tests/profile03.phpt
new file mode 100644
index 00000000000..14f1c5fe888
--- /dev/null
+++ b/ext/simplexml/tests/profile03.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SimpleXML [profile]: Accessing an attribute
+--SKIPIF--
+
+--FILE--
+
+
+
+
+');
+
+echo $root->child['attribute'];
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Sample
+---Done---
diff --git a/ext/simplexml/tests/profile04.phpt b/ext/simplexml/tests/profile04.phpt
new file mode 100644
index 00000000000..bc15968eaa7
--- /dev/null
+++ b/ext/simplexml/tests/profile04.phpt
@@ -0,0 +1,18 @@
+--TEST--
+SimpleXML [profile]: Accessing a namespaced element
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+
+');
+
+echo $root->reserved->child;
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Hello
+---Done---
diff --git a/ext/simplexml/tests/profile05.phpt b/ext/simplexml/tests/profile05.phpt
new file mode 100644
index 00000000000..d4f651b57ee
--- /dev/null
+++ b/ext/simplexml/tests/profile05.phpt
@@ -0,0 +1,22 @@
+--TEST--
+SimpleXML [profile]: Accessing an aliased namespaced element
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+
+');
+
+$root->register_ns('myns', 'reserved-ns');
+
+echo $root->myns->child;
+echo $root->reserved->child;
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Hello
+---Done---
diff --git a/ext/simplexml/tests/profile06.phpt b/ext/simplexml/tests/profile06.phpt
new file mode 100644
index 00000000000..e1817f30a9c
--- /dev/null
+++ b/ext/simplexml/tests/profile06.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SimpleXML [profile]: Accessing a namespaced attribute
+--SKIPIF--
+
+--FILE--
+
+
+
+
+');
+
+echo $root->child['reserved:attribute'];
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Sample
+---Done---
diff --git a/ext/simplexml/tests/profile07.phpt b/ext/simplexml/tests/profile07.phpt
new file mode 100644
index 00000000000..b76e6ddc959
--- /dev/null
+++ b/ext/simplexml/tests/profile07.phpt
@@ -0,0 +1,22 @@
+--TEST--
+SimpleXML [profile]: Accessing an aliased namespaced attribute
+--SKIPIF--
+
+--FILE--
+
+
+
+
+');
+
+$root->register_ns('myns', 'reserved-ns');
+
+echo $root->child['reserved:attribute'];
+echo $root->child['myns:attribute'];
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Sample
+---Done---
diff --git a/ext/simplexml/tests/profile08.phpt b/ext/simplexml/tests/profile08.phpt
new file mode 100644
index 00000000000..6fedb4859a9
--- /dev/null
+++ b/ext/simplexml/tests/profile08.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SimpleXML [profile]: Accessing a namespaced attribute without a namespace
+--SKIPIF--
+
+--FILE--
+
+
+
+
+');
+
+echo $root->child['attribute'];
+echo "\n---Done---\n";
+?>
+--EXPECT--
+
+---Done---
diff --git a/ext/simplexml/tests/profile09.phpt b/ext/simplexml/tests/profile09.phpt
new file mode 100644
index 00000000000..714572df1ef
--- /dev/null
+++ b/ext/simplexml/tests/profile09.phpt
@@ -0,0 +1,19 @@
+--TEST--
+SimpleXML [profile]: Accessing a namespaced element without a namespace
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+
+');
+
+echo $root->child;
+echo "\n---Done---\n";
+?>
+--EXPECT--
+
+---Done---
diff --git a/ext/simplexml/tests/profile10.phpt b/ext/simplexml/tests/profile10.phpt
new file mode 100644
index 00000000000..747b056fcb1
--- /dev/null
+++ b/ext/simplexml/tests/profile10.phpt
@@ -0,0 +1,25 @@
+--TEST--
+SimpleXML [profile]: Accessing two attributes with the same name, but different namespaces
+--SKIPIF--
+
+--FILE--
+
+
+
+
+');
+
+echo $root->child['reserved:attribute'];
+echo "\n";
+echo $root->child['special:attribute'];
+foreach ($root->child['attribute'] as $attr) {
+ echo "$attr\n";
+}
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Sample
+Test
+---Done---
diff --git a/ext/simplexml/tests/profile11.phpt b/ext/simplexml/tests/profile11.phpt
new file mode 100644
index 00000000000..f9dd2dc58e6
--- /dev/null
+++ b/ext/simplexml/tests/profile11.phpt
@@ -0,0 +1,26 @@
+--TEST--
+SimpleXML [profile]: Accessing two elements with the same name, but different namespaces
+--SKIPIF--
+
+--FILE--
+
+
+ Hello
+ World
+
+');
+
+echo $root->reserved->child;
+echo "\n";
+echo $root->special->child;
+foreach ($root->child as $child) {
+ echo "$child\n";
+}
+echo "\n---Done---\n";
+?>
+--EXPECT--
+Hello
+World
+---Done---