3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyIterator extends \ArrayIterator { } $iterator = new MyIterator(); $serialized = serialize($iterator);echo $serialized; $unserialized = unserialize($serialized);
based on R9tKp
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0alpha1
C:10:"MyIterator":21:{x:i:0;a:0:{};m:a:0:{}}
Output for hhvm-3.15.4
O:10:"MyIterator":0:{}