3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = array('key.txt'); var_dump(file_get_contents($a));
Output for 5.4.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents() expects parameter 1 to be a valid path, array given in /in/BI0vN on line 3 NULL
Output for 4.3.0 - 5.3.29, hhvm-3.10.0 - 3.12.0
Warning: file_get_contents() expects parameter 1 to be string, array given in /in/BI0vN on line 3 NULL