The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.
#!/usr/bin/env perl
use strict;
use warnings;

use PHP::Serialization::XS;
use Test::More tests => 1;

my $hash = { 'Volkswagen' => { 'Touareg' => { '2.5' => 1 } }, };

my $str = PHP::Serialization::XS::serialize($hash);

is($str,'a:1:{s:10:"Volkswagen";a:1:{s:7:"Touareg";a:1:{s:3:"2.5";i:1;}}}','Keys are string or int');