3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $rose = "black"; ${"rose"} = "white"; $rose = "red"; print_r(${"rose"}); echo "\n\n"; $arr{" "} = 99; var_dump($arr); $o = (object) $arr; var_dump($o); echo $o->{" "},"\n";
based on lGII3
Output for 5.0.0 - 5.6.28, hhvm-3.12.0, 7.0.0 - 7.1.0
red array(1) { [" "]=> int(99) } object(stdClass)#1 (1) { [" "]=> int(99) } 99
Output for hhvm-3.10.0

Process exited with code 153.
Output for 4.3.0 - 4.4.9
red array(1) { [" "]=> int(99) } object(stdClass)(1) { [" "]=> int(99) } 99