3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('A' => 1, 'B' => 0, 'B1' => 1); echo serialize($a); var_export($a);
based on iSK0H
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;}array ( 'A' => 1, 'B' => 0, 'B1' => 1, )