3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function getX(){return 123;} function getY($x){return $x*2;} function getZ($y){return $y*2;} if( true && ($x = getX()) && ($y=getY($x)) && ($z=getZ($y)) ) {echo('true '.$x.' '.$y.' '.$z);} else {echo('false '.$x);}
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
true 123 246 492