3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Sekai_Game{ public $start = True; public function __destruct(){ echo "__destruct\n"; if($this->start === True){ echo "Sekai Game Start Here is your flag ".getenv('FLAG'); } } public function __wakeup(){ echo "__wakeup\n"; $this->start=False; } } $data='C:10:"Sekai_Game":0:{}'; unserialize($data); ?>
Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25, 8.4.1 - 8.4.12
Warning: Class Sekai_Game has no unserializer in /in/ihNnN on line 16 __destruct Sekai Game Start Here is your flag

preferences:
111.79 ms | 407 KiB | 5 Q