3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Abcd { public $remain = 180; public function __construct() { $this->remain--; } public function __toString() { return (string) $this->remain; } } $abcd = new Abcd(); echo $abcd;
Output for 7.2.11
179