3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $row = array( 'useless' => 42, 'useful' => 'orange', 'useless_too' => 'banana', 'useful_too' => 'apples'); foreach ($row as $value){ $pos = strpos($value, 'useful'); echo $pos; }
Output for 4.3.0 - 7.1.0