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);
based on 7WvvO
Output for 7.1.0 - 7.2.0
Fatal error: Uncaught ArgumentCountError: Too few arguments to function abc(), 1 passed in /in/VOKq7 on line 14 and exactly 3 expected in /in/VOKq7:5 Stack trace: #0 /in/VOKq7(14): abc(1) #1 {main} thrown in /in/VOKq7 on line 5
Process exited with code 255.
Output for 5.3.22 - 7.0.20
Warning: Missing argument 2 for abc(), called in /in/VOKq7 on line 14 and defined in /in/VOKq7 on line 5 Warning: Missing argument 3 for abc(), called in /in/VOKq7 on line 14 and defined in /in/VOKq7 on line 5 Notice: Use of undefined constant cc - assumed 'cc' in /in/VOKq7 on line 8 Array ( )