3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class test { public function blah() { echo 'test'; } } $test = new test(); $serialized = serialize($test); echo $serialized; $unserialized = unserialize($serialized); $unserialized->blah();
based on 2986g
Output for 5.6.0 - 7.3.0alpha1
O:4:"test":0:{}test