3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class TimePeriod { private $Seconds; // <-- Traditional Property public $Hours { // <-- Guarded Property get() { return $this->Seconds / 3600; } set($x) { $this->Seconds = $x * 3600; } isset() { return isset($this->Seconds); } unset() { unset($this->Seconds); } } } $tp = new TimePeriod();
Output for 5.3.0 - 5.4.11
Parse error: syntax error, unexpected '{', expecting ',' or ';' in /in/jvFt9 on line 6
Process exited with code 255.