3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 0 => '.', 1 => '..', 2 => '_BACKUP', 3 => '_global.xml', 4 => '_icon', 5 => '_images', 6 => '_languages', 7 => '_settings.xml', 8 => '_sound', 9 => '_video', 10 => '_xml', 11 => 'fischerwirt.xls', 12 => 'panorama', 13 => 'thumbs', ); preg_match('.xls',$array);
Output for 4.3.3 - 7.1.0
Warning: preg_match() expects parameter 2 to be string, array given in /in/8kSSR on line 19
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/8kSSR on line 19 Warning: No ending delimiter '.' found in /in/8kSSR on line 19