3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function can($right) { $something1 = true; $something2 = true; return $something1 && $something2; } var_dump(can(123)); //---- $something1 = 1; $something2 = 2; $something4 = $something1 ? $something1 : $something2; var_dump($something4);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
bool(true) int(1)