3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $string = 'image.-380x409.jpg'; echo '<pre>'; var_dump( strpos($string, '.')); echo '</pre>'; //$string = substr_replace ( mixed $string , mixed $replacement , mixed $start [, mixed $length ] );
based on uukJt
Output for 5.6.0 - 5.6.38, hhvm-3.15.4 - 3.22.0, 7.0.0 - 7.2.12
<pre>int(5) </pre>