<?php class N { private $val; public function __construct($val) { $this->value = $val; } function __tostring() { return $this->value; } } var_dump((int) new N());
You have javascript disabled. You will not be able to edit any code.