3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $types = array('Forex+Metals'); // Specify types $needleTypes = array( 'Forex+Metals', 'Metals', 'CFDStocks', 'CFDFutures', 'CFDStocksRU', 'Unknowns', ); // Get valid types $typesStr = array(); foreach ($types as $type) { if (in_array($type, $needleTypes)) { echo $type . "\n"; $typesStr[] = $type; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Forex+Metals