3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = "Whoooot!\n"; $b = (object)"It's an object!\n"; $c = &$a; $d = &$b; function testIt ($z){ print_r($z); } testIt($c); testIt($d);
Output for 4.3.0 - 7.2.0
Whoooot! stdClass Object ( [scalar] => It's an object! )