3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var="htmlentities"; function lawl(){}; $var2="lawl"; var_dump(get_resource_type($var),get_resource_type($var2));
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/r9Pc1 on line 5 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/r9Pc1 on line 5 NULL NULL
Output for 4.3.0 - 5.2.17
Warning: Supplied argument is not a valid resource handle in /in/r9Pc1 on line 5 Warning: Supplied argument is not a valid resource handle in /in/r9Pc1 on line 5 bool(false) bool(false)