3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $var="htmlentities"; function &lawl(){}; var_dump(get_resource_type($var),get_resource_type(lawl));
Output for 5.5.0 - 7.1.0
Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/DlsbV on line 4 Notice: Use of undefined constant lawl - assumed 'lawl' in /in/DlsbV on line 4 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/DlsbV on line 4 NULL NULL
Output for 5.3.0 - 5.4.45
Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/DlsbV on line 4 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/DlsbV on line 4 NULL NULL
Output for 5.2.3 - 5.2.17
Warning: Supplied argument is not a valid resource handle in /in/DlsbV on line 4 Warning: Supplied argument is not a valid resource handle in /in/DlsbV on line 4 bool(false) bool(false)
Output for 4.3.0 - 5.2.2
<br /> <b>Warning</b>: Supplied argument is not a valid resource handle in <b>/in/DlsbV</b> on line <b>4</b><br /> <br /> <b>Warning</b>: Supplied argument is not a valid resource handle in <b>/in/DlsbV</b> on line <b>4</b><br /> bool(false) bool(false)