3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $text = 'Here\'s some text and stuff what is your favorite color? @OTHER["favorite color"] Whats your favorite food? @OTHER["favorite food"]'; while(strpos($text, "@OTHER[") !== false){ $start = strpos($text, '@OTHER["'); $stop = strpos($text, '"]', $start); echo substr($text, $start, $stop-$start); exit; }
Output for 4.3.0 - 7.1.0
@OTHER["favorite color