3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function exec(array &$context) { $context['bla'] = 'hoi'; } } class B extends A { public function exec(array $context) { parent::exec($context); var_dump($context); } } $b = new B(); $b->exec([]);
based on ai9mg