3v4l.org

run code in 300+ PHP versions simultaneously
<?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.4.19, 5.5.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.

preferences:
169.78 ms | 1399 KiB | 59 Q