--TEST-- Ensure object comparison property order remains consistent --FILE-- a = 0; $a->b = 1; $b = new B(); $b->a = 1; $b->b = 0; var_dump($a < $b); print_r($a, true); var_dump($a < $b); --EXPECT-- bool(false) bool(false)