> (14 - $i)) & 1; echo "Bit {$i}: {$bit}\n"; } echo "\n=== Vertical Placement (Col 8) ===\n"; echo "Rows: 20, 19, 18, 17, 16, 15, 14, 8, 7, 5, 4, 3, 2, 1, 0\n"; echo "Bits: "; for ($i = 0; $i < 15; $i++) { echo $pythonFormatV[$i] . " "; } echo "\n\n"; // Check if they're the same sequence echo "Are they the same sequence?\n"; echo "Horizontal: {$pythonFormatH}\n"; echo "Vertical: {$pythonFormatV}\n"; $differences = 0; for ($i = 0; $i < 15; $i++) { if ($pythonFormatH[$i] !== $pythonFormatV[$i]) { echo "Bit {$i}: H={$pythonFormatH[$i]} V={$pythonFormatV[$i]} ❌\n"; $differences++; } } if ($differences === 0) { echo "✅ They are identical!\n"; } else { echo "❌ They differ in {$differences} positions!\n"; } echo "\n=== Key Insight ===\n"; echo "The format bits should be placed in DIFFERENT READING ORDERS\n"; echo "but represent the SAME 15-bit sequence!\n";