3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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 hhvm-3.10.0

Process exited with code 153.
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected ''' (T_ENCAPSED_AND_WHITESPACE) in /in/B49PA on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in /in/B49PA on line 12
Process exited with code 255.