0+$x; #Upd: Or 1.1 or whatever #### $x = dualvar(0+$x, $x) if looks_like_number($x);