3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Config { public function getConfig() { return $this->config ?? 'tst'; } } var_dump((new Config())->getConfig());
based on V1ASY
Output for 7.0.0 - 7.2.0
string(3) "tst"
Output for 5.3.18 - 5.6.28
Parse error: syntax error, unexpected '?' in /in/WDjOu on line 7
Process exited with code 255.