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 7.2.0 - 7.3.0rc4
Warning: Use of undefined constant lawl - assumed 'lawl' (this will throw an Error in a future version of PHP) in /in/9PoIN on line 4 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/9PoIN on line 5 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/9PoIN on line 5 NULL NULL
Output for 5.3.0 - 7.1.20
Notice: Use of undefined constant lawl - assumed 'lawl' in /in/9PoIN on line 4 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/9PoIN on line 5 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/9PoIN on line 5 NULL NULL
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant lawl - assumed 'lawl' in /in/9PoIN on line 4 Warning: Supplied argument is not a valid resource handle in /in/9PoIN on line 5 Warning: Supplied argument is not a valid resource handle in /in/9PoIN on line 5 bool(false) bool(false)