3v4l.org

run code in 200+ 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.30, hhvm-3.10.1 - 3.17.3, 7.0.0 - 7.2.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)