3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $variable = 'running'; if('running' == $variable) { echo "This looks ok = 'running' == \$variable"; } $variable = true; if('running' == $variable) { echo "\nbut it actually is not"; } if('running' === $variable) { echo "\nin a safe world this won't show but"; } $variable = 'running'; if('running' === $variable) { echo "\nin a safe world this will show"; }
based on 80lnE
Output for 5.5.0 - 7.3.0rc3
This looks ok = 'running' == $variable but it actually is not in a safe world this will show