3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php ${" "} = "blank space"; ${"123"} = 456; var_dump(${" "},${"123"}); $a = get_defined_vars(); echo array_key_exists(" ",$a)? "Yes" : "No","\n"; echo array_key_exists("123",$a)? "Yes" : "No";
based on TXEHc
Output for 5.0.0 - 7.1.0
string(11) "blank space" int(456) Yes No
Output for 4.3.0 - 4.4.9
string(11) "blank space" int(456) Yes Yes