Find the largest palindrome made from the product of two 3-digit numbers

A palindromic number reads the same both ways. The largest palindrome made from the product of two 2-digit numbers is 9009 = 91 × 99.

Run this code to get palindrome number <?php $palindrome = 0; for ($i = 100; $i <= 999; $i++) { for ($j = 100; $j <= 999; $j++) { $x = $i * $j; if ($x > $palindrome && $x == strrev($x)) { $palindrome = $x; } } } echo $palindrome; ?>