3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Everything { public static function is($newValue) { foreach ($_GLOBALS as $key => &$value) { $value = $newValue; } } } $foo = 'foo'; $bar = 'bar'; Everything::is('awesome'); var_dump($foo, $bar);

preferences:
46.39 ms | 402 KiB | 5 Q