Spaceship operator

What is Spaceship Operator which is newly introduced in php 7

// <=> Space ship Operators

$compare = 2 <=> 1
2 < 1? return -1
2 = 1? return 0
2 > 1? return 1

When its a combination 3 operators.less than, equals and greater than,

When the value on the left is less than the value on the right, it will return -1,

When the value on the left and right is equal it will  return 0,

When the value on the left is greater than the right it will return 1,