3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'foo'; $temporaryA = $a; $a = md5('value for finding ' . uniqid()); $variables = get_defined_vars(); $key = array_search($a, $variables, true); var_dump($key); $a = $temporaryA; unset ($temporaryA);
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
string(1) "a"
Output for 4.3.0 - 4.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/F0gDW on line 7 string(1) "a"