3v4l.org

run code in 300+ PHP versions simultaneously
<?php $test = pack('c*', -22); $testU = pack('C*', 234); $testC = chr(-22); $testCU = chr(234); echo $test; echo $testU; echo $testC; echo $testCU; echo $test == $testU; echo $testC == $test; echo $testCU == $test; $uTest = unpack('c*', 'ê'); echo $uTest
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected end of file, expecting ',' or ';' in /in/KVrcM on line 16
Process exited with code 255.

preferences:
168.45 ms | 1395 KiB | 32 Q