3v4l.org

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