3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public $v = null; function __construct($v){ $this->v = $v; } function __destruct() { echo $this->v; } } $a = new A(); $
Output for 5.4.0 - 5.4.21
Parse error: syntax error, unexpected end of file, expecting variable (T_VARIABLE) or '$' in /in/vPkfo on line 12
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected $end, expecting T_VARIABLE or '$' in /in/vPkfo on line 12
Process exited with code 255.