3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $objTarget = null; $objPage = new \stdClass; $objPage->getFrontendUrl = 'test'; var_export(array( (($objTarget ?: $objPage))->getFrontendUrl ));
based on DVi1e
Output for hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.3.1
array ( 0 => 'test', )
Output for 5.6.0 - 5.6.38
Parse error: syntax error, unexpected '->' (T_OBJECT_OPERATOR), expecting ')' in /in/b3oPf on line 7
Process exited with code 255.