3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class Foo { private $key; public function __construct($value) { $this->key = $value; } public function printKey(Foo $b) { print $b->key; } } $x = new Foo(‘AAA’); $x->printKey(new Foo(‘BBB’)); <= что будет на экране? почему?
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '<=' (T_IS_SMALLER_OR_EQUAL) in /in/4QAdv on line 7
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_IS_SMALLER_OR_EQUAL in /in/4QAdv on line 7
Process exited with code 255.