3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class TestParent { private $adsa = 'asd'; } class Test extends TestParent { private $test = 'asd2'; public function __sleep() { return array('test', 'adsa'); } } $a = new Test(); echo serialize($a);
based on XoR8I
Output for 5.3.18 - 7.2.0
Notice: serialize(): "adsa" returned as member variable from __sleep() but does not exist in /in/iHnO8 on line 19 O:4:"Test":2:{s:10:"Testtest";s:4:"asd2";s:4:"adsa";N;}