3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class kek { private $wow = 'kek'; public function getWow() { return $wow; } } class mek extends kek { public function __construct() { $this->wow = 'mek'; } } $mek = new mek(); var_dump($mek->getWow());
Output for 5.6.0 - 5.6.30, hhvm-3.21.3, 7.1.0 - 7.3.0beta1
Notice: Undefined variable: wow in /in/UNKqs on line 7 NULL
Output for hhvm-3.18.5, hhvm-3.22.0
Notice: Undefined variable: wow in /in/UNKqs on line -1 NULL