3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $t = true; class T { public function test(bool $t2) { return true; } } var_dump((new T())->test($t)); die; $p = [ 'linkedid' => 1508243580.50287, 'duration' => 0, 'dialstatus' => 'CANCEL', 'mp3link' => "http://80.249.187.140/getVrl.php?id=44&key=c47d29a9c75670bcd104d12488ab7ff2&filename=1508243580.50287.mp3", 'key' => 'cee5a0a577804ae98d0d51e5877452ba', 'billsec' => 0, 'eventType' => 3, 'serverTime' => 1508243585 ]; var_dump(http_build_query($p));
based on 5Si6C
Output for hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0beta1
bool(true)
Output for 5.6.0 - 5.6.30
Catchable fatal error: Argument 1 passed to T::test() must be an instance of bool, boolean given, called in /in/Z2p28 on line 10 and defined in /in/Z2p28 on line 5
Process exited with code 255.