3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { protected $testVal = session_id(); public function __construct() { echo "hello!"; } } $a = new A();
Output for 5.3.0 - 5.4.24
Parse error: syntax error, unexpected '(', expecting ',' or ';' in /in/RaETP on line 5
Process exited with code 255.