Paste Search Dynamic
Recent pastes
Sleeper
  1. <?php
  2. class Sleeper
  3. {
  4.     private $data;
  5.  
  6.     public function __construct($data)
  7.     {
  8.         $this->data = $data;
  9.     }
  10.  
  11.     public function __sleep()
  12.     {
  13.         return ['data'];
  14.     }
  15. }
  16.  
  17. echo serialize(new Sleeper("test")), "\n";
  18. echo serialize(new Sleeper("\xC3\xA9")), "\n";
  19. ?>
Parsed in 0.009 seconds