diff --git src/wp-includes/formatting.php src/wp-includes/formatting.php
index 89ecbbe..01b6405 100644
--- src/wp-includes/formatting.php
+++ src/wp-includes/formatting.php
@@ -374,7 +374,7 @@ function wptexturize_primes( $haystack, $needle, $prime, $open_quote, $close_quo
  */
 function _wptexturize_pushpop_element( $text, &$stack, $disabled_elements ) {
 	// Is it an opening tag or closing tag?
-	if ( '/' !== $text[1] ) {
+	if ( isset( $text[1] ) && '/' !== $text[1] ) {
 		$opening_tag = true;
 		$name_offset = 1;
 	} elseif ( 0 == count( $stack ) ) {
diff --git tests/phpunit/tests/formatting/WPTexturize.php tests/phpunit/tests/formatting/WPTexturize.php
index 4d7caf3..afd323e 100644
--- tests/phpunit/tests/formatting/WPTexturize.php
+++ tests/phpunit/tests/formatting/WPTexturize.php
@@ -2073,6 +2073,15 @@ String with a number followed by a single quote !q1!Expendables 3!q1! vestibulum
 		return $this->assertLessThan( 200, $result );
 	}
 
+	/**
+	 * Ensure that a trailing less-than symbol doesn't cause a PHP warning.
+	 *
+	 * @ticket 35864
+	 */
+	function test_trailing_less_than() {
+		$this->assertEquals( 'F&#8211;oo<', wptexturize( 'F--oo<', true ) );
+	}
+
 	function data_whole_posts() {
 		require_once( DIR_TESTDATA . '/formatting/whole-posts.php' );
 		return data_whole_posts();
