Ad
  • Default User Avatar
    $a1 = [121, 144, 19, 161, 19, 144, 19, 11];
    $a2 = [11*11, 121*121, 144*144, 19*19, 161*161, 19*19, 144*144, 19*19];
    $this->revTest(comp($a1, $a2), true);
    

    Maybe you don't read correctly the result of the test: the expected result is true and you returned false.

    PS: See the top of the page, 576 guys passed the PHP kata. If there were errors one can hope that somebody would have already seen them!