3v4l.org

run code in 200+ 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 - 7.2.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 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