3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class A { function __construct() { $_REQUEST[__CLASS__]['page'] = 5; } } var_dump($_REQUEST); new A; var_dump($_REQUEST);
Output for 5.0.0 - 7.1.0
array(0) { } array(1) { ["A"]=> array(1) { ["page"]=> int(5) } }
Output for 4.3.2 - 4.4.9
array(0) { } array(0) { }
Output for 4.3.0 - 4.3.1
array(1) { ["/in/2ASVM"]=> string(0) "" } array(1) { ["/in/2ASVM"]=> string(0) "" }