3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php define("AAA","AAA"); function abc($cc,&$aa,&$bb) { $arr = get_defined_vars(); unset($arr[cc]); print_r($arr); $aa = 2; $bb = 3; } abc(1,$aa,$bb);
based on VOKq7
Output for 7.2.0
Warning: Use of undefined constant cc - assumed 'cc' (this will throw an Error in a future version of PHP) in /in/Q3RWZ on line 8 Array ( [aa] => [bb] => )
Output for 5.3.22 - 7.1.10
Notice: Use of undefined constant cc - assumed 'cc' in /in/Q3RWZ on line 8 Array ( [aa] => [bb] => )