3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $page=array(); $matches = array(); $matches[1]='../ololo'; preg_match('#([A-Za-z0-9\-\_]*)#', $page, $matches); $file = '../views/' . $matches[1] . '.html'; var_dump($file);
Output for 4.3.3 - 7.1.0
Warning: preg_match() expects parameter 2 to be string, array given in /in/tRXbp on line 5 string(22) "../views/../ololo.html"
Output for 4.3.0 - 4.3.2
Notice: Array to string conversion in /in/tRXbp on line 5 string(19) "../views/Array.html"