1--TEST-- 2Bug #26458 (var_dump(), var_export() & debug_zval_dump() are not binary safe for array keys) 3--FILE-- 4<?php 5$test = array("A\x00B" => "Hello world"); 6var_dump($test); 7var_export($test); 8debug_zval_dump($test); 9?> 10--EXPECTF-- 11array(1) { 12 ["A%0B"]=> 13 string(11) "Hello world" 14} 15array ( 16 'A' . "\0" . 'B' => 'Hello world', 17)array(1) %s{ 18 ["A%0B"]=> 19 string(11) "Hello world" %s 20} 21