3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function get_string() { return 'foo'; } if (($string = get_string()) && 1 == TRUE) { var_dump($string); }
based on vUj7C
Output for 5.6.0 - 7.3.0alpha1
string(3) "foo"