3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function endsWith($haystack, $needle) { return $needle === "" || substr($haystack, -strlen($needle)) === $needle; } $path = 'http://acc.telemundo.com/sites/nbcutelemundo/files/sites/nbcutelemundo/files/images/brand/07_FandangoCine_Logo_2.svg'; if(endsWith($path, '.svg')) { print "done"; }
based on BS70G
Output for 4.3.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
done
Output for hhvm-3.10.0

Process exited with code 153.