3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $base = '/some/dir'; $path = 'foo/bar'; $protect = 'foo'; $p1 = $base.'/'.$path; $p2 = $base.'/'.$protect; $result = strcmp($p1,$p2); echo "Result: ".$result; ?>
Output for 4.3.0 - 7.1.0
Result: 4