3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MySplFileObject extends SplFileObject{ public function __construct() {} public function serialize() {return '';} public function unserialize($data) {} } $fileObject = new MySplFileObject; //echo serialize($fileObject); $fileObject = unserialize('C:15:"MySplFileObject":0:{}'); print_r($fileObject); echo $fileObject;