3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = 5; $b = 4; function crazy(int $a, int & $b) { return (($a == !$b) === ($a % $b)) ? $a : ($b == $a); } echo crazy($a, $b);
based on RZXqs
Output for 7.0.0 - 7.3.0alpha1
Output for 5.5.0 - 5.6.28
Catchable fatal error: Argument 1 passed to crazy() must be an instance of int, integer given, called in /in/qhOqg on line 11 and defined in /in/qhOqg on line 6
Process exited with code 255.