3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dataObj = new \stdClass($a=8); var_dump(\stdClass\$a); // Notice: Undefined variable: a var_dump($dataObj);
Output for 5.4.0 - 5.4.23
Parse error: syntax error, unexpected '$a' (T_VARIABLE), expecting identifier (T_STRING) in /in/kWTFZ on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE, expecting T_STRING in /in/kWTFZ on line 4
Process exited with code 255.