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); var_dump($key); $a = $temporaryA; unset ($temporaryA);
Output for 5.0.0 - 5.1.0, 5.1.2 - 5.2.9, 5.2.11 - 5.3.4, 5.3.6 - 5.5.34, 5.6.8 - 7.0.6, 7.1.0
string(1) "a"
Output for 5.1.1, 5.2.10, 5.3.5, 5.5.35, 7.0.14
string(4) "argc"
Output for 4.3.0 - 4.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/ODK0R on line 7 string(1) "a"