3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $out = array('one', 'two', 'three'); echo 'Serialized: '.serialize($out); echo 'Unserialized: '.unserialize(serialize($out));
Output for 5.4.0 - 5.6.28, hhvm-3.10.0, 7.0.0 - 7.1.0
Serialized: a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"three";} Notice: Array to string conversion in /in/vufq8 on line 4 Unserialized: Array
Output for hhvm-3.12.0
Serialized: a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"three";} Notice: Array to string conversion in /in/vufq8 on line -1 Unserialized: Array
Output for 4.3.0 - 5.3.29
Serialized: a:3:{i:0;s:3:"one";i:1;s:3:"two";i:2;s:5:"three";}Unserialized: Array