3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo array_search( 'image/svg+xml', array( 'jpg' => 'image/jpeg', 'png' => 'image/png', 'svg' => 'image/svg+xml', 'svg' => 'text/html', 'svg' => 'text/plain', 'gif' => 'image/gif' ), true );
based on XHaG5
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0rc6