3v4l.org

run code in 300+ PHP versions simultaneously
<?php $p = pack('C*',[1, 2, 3]); $d = pack('C*',[1, 2, 3]); echo $p&$d > 0 ? 't' : 'f';
Output for 8.1.0 - 8.1.31, 8.2.0 - 8.2.26, 8.3.0 - 8.3.15, 8.4.1 - 8.4.2
Fatal error: Uncaught TypeError: Unsupported operand types: string & bool in /in/rogHS:6 Stack trace: #0 {main} thrown in /in/rogHS on line 6
Process exited with code 255.

preferences:
51.48 ms | 406 KiB | 5 Q