3v4l.org

run code in 200+ 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 - 7.1.7
a:3:{s:1:"A";i:1;s:1:"B";i:0;s:2:"B1";i:1;}array ( 'A' => 1, 'B' => 0, 'B1' => 1, )