3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $str = "foo.domain.com"; $m = "domain.com"; var_dump(substr_compare($str, $m, -strlen($m), strlen($m)));
based on 39hSs
Output for 5.6.0 - 7.3.0rc4
int(0)