3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { private $shit == 'this'; public function bar() { $name = 'this'; var_dump($$name); $$name = 'herpderp'; var_dump($$name); var_dump($this->shit); } } $d = new Foo; $d->bar();
Output for 5.4.0 - 5.5.3
Parse error: syntax error, unexpected '==' (T_IS_EQUAL), expecting ',' or ';' in /in/qRfb5 on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_IS_EQUAL, expecting ',' or ';' in /in/qRfb5 on line 4
Process exited with code 255.