3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?hh function foo(): bool { $foo = 10; // $foo is an integer $bar = (boolean) $foo; // $bar is a boolean return $bar; } foo();
Output for 5.4.0 - 5.4.32
<?hh function foo(): bool { $foo = 10; // $foo is an integer $bar = (boolean) $foo; // $bar is a boolean return $bar; } foo();