3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo (strcmp('5-4',5) === 0 ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo (5 == '5-4' ? 'they are the same' : 'they aren\'t the same'); echo "\n"; echo ('5' === 5 ? 'they are the same' : 'they aren\'t the same');
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
they aren't the same they are the same they aren't the same