3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = 'foo'; $temporaryA = $a; $a = md5(uniqid()); $variables = get_defined_vars(); $key = array_search($a, $variables); var_dump($key); $a = $temporaryA; unset ($temporaryA);
Output for 5.0.0 - 5.2.13, 5.2.15 - 5.4.1, 5.4.3 - 5.4.4, 5.4.6 - 7.1.0
string(1) "a"
Output for 5.2.14, 5.4.2, 5.4.5
string(4) "argc"
Output for 4.3.0 - 4.4.9
Warning: uniqid() expects at least 1 parameter, 0 given in /in/nFlsM on line 7 string(1) "a"