3v4l.org

run code in 150+ 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 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
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, )