3v4l.org

run code in 300+ PHP versions simultaneously
<?php error_reporting(E_ALL); $var = new StdClass(); $var->foo = 'bar'; $GLOBALS['this'] = $var; var_dump('Global this',$this); $var->foo = 'baz'; $foo = 'this'; $$foo = $var; var_dump('variable variables',$this); foo($this); function foo($this){ var_dump('var_dump this',$this); $GLOBALS['this']->foo = 'baw'; $$GLOBALS['foo'] = $GLOBALS['this']; var_dump('last var_dump this',$this); }

This is an error 404

There are `0` results


preferences:
146.28 ms | 1399 KiB | 7 Q