3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class T { private $allowed = 0; function __destruct() { if ($this->allowed == 1) echo file_get_contents("key.php"); } } $g = new T(); $res = serialize($g); echo $res;
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
O:1:"T":1:{s:10:"Tallowed";i:0;}