3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $out = array('one', 'two', 'three'); echo 'Serialized: '.serialize($out).' '; //Couldn't use newline character, so I just wrapped it in quotes. Boom, baby. echo 'Unserialized: '.print_r(unserialize(serialize($out)), true);
Output for 4.3.0 - 7.1.0
Serialized: a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"three";} Unserialized: Array ( [0] => one [1] => two [2] => three )