3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function setsome($action) { $levar = true; if ($action == "toggle") { $levar = false; } else if ($action == "get") { return $levar; } } echo setsome('get'); setsome('toggle'); echo setsome('get'); ?>
Output for 4.3.0 - 7.1.0
11