3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // Native PHP $products = array('horloges', 'media', 'gereedschap'); echo'<pre>';print_r($products); // convert to a string $string = serialize($products); echo $string; // a:3:{i:0;s:8:"horloges";i:1;s:5:"media";i:2;s:11:"gereedschap";} // you can reproduce the original variable $products = unserialize($string); echo'<pre>';print_r($products);
Output for 4.3.0 - 7.1.0
<pre>Array ( [0] => horloges [1] => media [2] => gereedschap ) a:3:{i:0;s:8:"horloges";i:1;s:5:"media";i:2;s:11:"gereedschap";}<pre>Array ( [0] => horloges [1] => media [2] => gereedschap )