3v4l.org

run code in 300+ PHP versions simultaneously
<?php class test{ public function pub($_POST) { print_r($_POST); } private function priv() { } } $arr = array('uri' => 'affirmative', 'k9' => 100); $newb = new test; $newb->pub($arr);
Output for 5.4.0 - 5.4.13
Fatal error: Cannot re-assign auto-global variable _POST in /in/1I9c4 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Array ( [uri] => affirmative [k9] => 100 )

preferences:
175.71 ms | 1395 KiB | 51 Q