3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class O { public $string = 'string'; public $int = 0; public $float = 1.0f; function method() { return $this->string; } } switch ('string') { case $o->string: case $o->int: case $o->float: break; case $o->method(): break; }
Output for 5.4.0 - 5.5.7
Parse error: syntax error, unexpected 'f' (T_STRING), expecting ',' or ';' in /in/FeqM0 on line 6
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /in/FeqM0 on line 6
Process exited with code 255.