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 - 7.1.0
Notice: Use of undefined constant lawl - assumed 'lawl' in /in/vLG3X on line 4 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/vLG3X on line 5 Warning: get_resource_type() expects parameter 1 to be resource, string given in /in/vLG3X on line 5 NULL NULL
Output for 4.3.0 - 5.2.17
Notice: Use of undefined constant lawl - assumed 'lawl' in /in/vLG3X on line 4 Warning: Supplied argument is not a valid resource handle in /in/vLG3X on line 5 Warning: Supplied argument is not a valid resource handle in /in/vLG3X on line 5 bool(false) bool(false)