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;
Output for 7.1.0 - 7.1.17, 7.2.0 - 7.2.6
Parse error: syntax error, unexpected 'echo' (T_ECHO), expecting ',' or ';' in /in/uLuJG on line 11
Process exited with code 255.

preferences:
171.06 ms | 1395 KiB | 32 Q