3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $id = -99; $a = array($id => array('id' => $id, 'name' => 'bill')); $b = serialize($a); var_dump($b);
Output for 4.3.0 - 7.1.0
string(55) "a:1:{i:-99;a:2:{s:2:"id";i:-99;s:4:"name";s:4:"bill";}}"