3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = array('A' => 1, 'B' => 0, 'B1' => 1); echo serialize($a); echo '<BR>'; var_export(unserialize(serialize($a)));
based on M3RNG
Output for 4.3.0 - 7.1.7
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}<BR>array ( 'A' => 1, 'B' => 0, 'B1' => 1, )