3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $location = new stdClass; $location->city = "Chicago"; $variableName = 'location->city'; //${$variableName} = 'Chicago'; $str = "\$location->city Dentist"; var_dump();
Output for 5.3.0 - 7.1.0
Warning: var_dump() expects at least 1 parameter, 0 given in /in/7Z9FC on line 8
Output for 5.2.3 - 5.2.17
Warning: Wrong parameter count for var_dump() in /in/7Z9FC on line 8
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: Wrong parameter count for var_dump() in <b>/in/7Z9FC</b> on line <b>8</b><br />