3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $baseTags = array( 'Bob' => 2, 'Theresa' => 3, 'The farm house' => 2, 'Bob at the farm house' => 1, ); foreach ($baseTags as $key => $count) { foreach ($baseTags as $k => $c) { if (false !== stripos($k,$key)) { unset($baseTags[$key]); } } } print_r($baseTags);
Output for 5.0.0 - 7.1.0
Array ( )
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: stripos() in /in/ZWsqQ on line 14
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: stripos() in /in/ZWsqQ on line 14
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: stripos() in /in/ZWsqQ on line 14