3v4l.org

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