3v4l.org

run code in 300+ PHP versions simultaneously
<?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);
Output for 5.5.24 - 5.5.31, 5.6.8 - 5.6.17, 7.0.0 - 7.0.2
Parse error: syntax error, unexpected 'print_r' (T_STRING), expecting ';' in /in/7WvvO on line 9
Process exited with code 255.

preferences:
165.59 ms | 1395 KiB | 28 Q