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["') + 8; $stop = strpos($text, '"]', $start); echo substr($text, $start, $stop-$start); exit; }
based on idJ1K
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
favorite color