3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define('DUMMY',"dummy"); ///// function foo($id=DUMMY){ var_dump(is_string($id); if($id == DUMMY){ echo "foo"; } else { echo "bar"; } } ///// foo(0);
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected ';' in /in/1QMQR on line 7
Process exited with code 255.