3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $variableGlobal = 30; Class myClass{ public $classProperty; function __construct(&$globalVar){ $this->classProperty = $globalVar; } function myFunction(){ $accessible = $this->classProperty; }
Output for 5.4.0 - 5.4.19
Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in /in/J3hXC on line 15
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting T_FUNCTION in /in/J3hXC on line 15
Process exited with code 255.