3v4l.org

run code in 300+ PHP versions simultaneously
<?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([]);
Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.7 - 5.6.14
Fatal error: Call-time pass-by-reference has been removed in /in/ai9mg on line 11
Process exited with code 255.

preferences:
187.92 ms | 1395 KiB | 65 Q