3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $options = array(true, 'foo', 100, false); foreach ($options as $optionKey => $optionValue) { if (true === $optionValue) { $options[$optionKey] = "true"; } else if (false === $optionValue) { $options[$optionKey] = "false"; } }
Output for 4.3.0 - 7.1.0