3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Aaa { private $zohoId; public function setZohoId(int $zohoId) { $this->zohoId = $zohoId; } } $aaa = new Aaa(); $aaa->setZohoId(1231066000009656139); // $bbb = new Aaa(); // $bbb->setZohoId(9223372036854775807); // $ccc = new Aaa(); // $ccc->setZohoId(9223372036854775808); var_dump(9223372036854775807);
based on 11M7X
Output for hhvm-3.15.4, 7.0.0 - 7.3.0beta1
int(9223372036854775807)
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to Aaa::setZohoId() must be an instance of int, integer given, called in /in/XaB0B on line 14 and defined in /in/XaB0B on line 7
Process exited with code 255.