3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Kitchen { private $yummy = 'cake'; } $kitchen = new Kitchen(); $sweetsThief = new ReflectionProperty($kitchen, 'yummy'); $sweetsThief->setAccessible(true); var_dump($sweetsThief($sweetsThief->getValue($kitchen)));