3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { protected $test; function getTest() { return $this->test; } function setTest($test { $this->test = $test; } } function blabla($lol) { $lol->setTest('Cookies'); } $B = new A;' blabla($B); echo $B->getTest();
Output for 5.3.0 - 5.3.27, 5.4.0 - 5.4.19
Parse error: syntax error, unexpected '{', expecting ')' in /in/L0KZh on line 5
Process exited with code 255.

preferences:
170.31 ms | 1399 KiB | 55 Q