3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function test() { return 'sample'; } function show( $here ) { echo $here; } switch ( $it = test() ) { case 'sample': show($it); break; default: show(''); break; }
Output for 4.3.0 - 7.1.0
sample