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*', 'ê'); $iTest = (int) 'ê'; var_dump($uTest); echo $iTest;
based on V5Sl2
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.3.0beta1
����111array(2) { [1]=> int(-61) [2]=> int(-86) } 0