3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array["\x00\x01\x02"] = 'foo'; var_dump($array); var_dump(bin2hex(key($array)));
Output for 4.3.5 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(1) { [""]=> string(3) "foo" } string(6) "000102"
Output for 4.3.0 - 4.3.4
array(1) { [""]=> string(3) "foo" } string(6) "000102"