3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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;
based on KVrcM
Output for 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.30 - 7.3.0rc3
����111 Notice: Array to string conversion in /in/MNjLm on line 16 Array
Output for hhvm-3.22.0
����111 Notice: Array to string conversion in /in/MNjLm on line -1 Array