3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $test; public $test2; public function serialize() { return serialize($this); } } $o = new Test(); $o->test = "aaaa"; $o->test2 = "bbbbb"; echo $o->serialize();

preferences:
50.36 ms | 402 KiB | 5 Q